It would be nice if there was a testing harness library published, but you
can take a look at what I did for my plugin tests:

http://github.com/jdigger/gradle_git_plugin/tree/master/src/test/groovy/com/mooregreatsoftware/gradle/gitplugin/

The most relevant thing is GradleTestHelper.createRootProject()


On Thu, May 6, 2010 at 4:00 AM, ck1125 <[email protected]> wrote:

>
> Hi All,
>
> I have been trying to write tests for a plugin and read that you could use
> GradleLauncher to get a handle to the Project object (a root project). I
> should be grateful if anyone can help me with a sample of how this can be
> done.
>
> My approach is to use the launcher to create a root project then run my
> plugin on the project and finally assert that it has achieved the desired
> result.
>
> Can anyone help me with this?
>
>
> Many thanks in advance.
>
> E
> --
> View this message in context:
> http://old.nabble.com/GradleLauncher-for-testing-plugins-tp28470464p28470464.html
> Sent from the gradle-user mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>

Reply via email to