On the xml beans maven plugin, we're running IT tests for each defect
which comes in. There are located under /src/test/projects/... and named
after the defect. The invoker plugin is used to run each test.
<plugin>
<artifactId>maven-invoker-plugin</artifactId>
<version>1.0</version>
<configuration>
<debug>true</debug>
<projectsDirectory>src/test/projects</projectsDirectory>
<pomIncludes>
<pomInclude>**/pom.xml</pomInclude>
</pomIncludes>
</configuration>
<executions>
<execution>
<id>integration-test</id>
<phase>integration-test</phase>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
I haven't put all the assertions in, but you get the idea.
Kris Bravo
On Sun, 2007-07-08 at 14:56 +0200, Valerio Schiavoni wrote:
> hello everyone,
>
> i've written a mojo that is supposed to instruments compiled classes.
>
> I've written some 'unit' tests using the plugin-testing-harness, so
> that i can test that configuration options are properly read and can
> be used.
> Now i'd like to write integration tests.
>
> This page : http://maven.apache.org/developers/committer-testing-plugins.html
> has confused me a bit.
>
> So, I was wondering if any of you could point me to some already
> existing plugin showing a good solution, so that I can take
> inspiration from it.
> I've looked at the jpox mojo, but then in the code you find something
> like: "// @todo find a way to test this mojo" :-)
>
> Thanks
> Valerio
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email