Russel Winder wrote:
My agenda is supposed to include getting a Gradle Ant task in place and
also getting a Cobertura plugin in place.  I seemed to have managed to
stop working on these -- I suspect because I am not entirely sure how to
test things correctly within a Gradle context.


For a plugin, we generally have a unit test which checks that the appropriate tasks, configurations, convention objects, etc are applied to the project. We also have at least one sample project which demonstrates how to use the plugin, plus an integration test which exercises that sample. Some plugins have additional integration tests to cover thing like sad day or edge cases. I would see a cobertura plugin following the same pattern.

For an Ant task, well, we don't have any to test, so there's no pattern to follow. I'd say a unit test, plus a sample and associated integration test would still be a good idea.

Is there a current test or two that I could use as paradigms to copy and
evolve.


You could look at *PluginTest for unit tests, and SamplesJavaQuickstartIntegrationTest for a basic int test

I suspect if I had a reasonable test framework for these two I might
actually get on and do something!


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to