Hi Jarkko,
This sounds to me more like a Maven-Problem than a WebTest-Problem. My first guess would be to bind the execution with id "webtest-report" to the site or pre-site phase. If this does not work, I would suggest to add another execution with id "webtest-site" that is bound to pre-site and does exactly the same as "webtest-test". Can you try this and tell me what happens? Good Luck Chris _____ From: [email protected] [mailto:[email protected]] On Behalf Of jarkko pave Sent: Freitag, 4. Dezember 2009 14:19 To: [email protected] Subject: [Webtest] How to include webtest results in Maven site? I'm having trouble with the Canoo maven plugin... My Canoo web tests are run in the integration-tests phase (not test phase). This has been used for a while, just running the tests as part of integration tests, and not including the reports anywhere. Now I'm trying to include the results in my site as well. After a while of tinkering I was able to run the tests with webtest-maven-plugin (before they were just run by antrun plugin) and create reports. The pom.xml config now looks like: <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>webtest-maven-plugin</artifactId> <version>0.6.5</version> <executions> <execution> <id>webtest-test</id> <phase>integration-test</phase> <goals> <goal>test</goal> </goals> <configuration> <!-- use the maven filtered version of test configurations --> <sourcedirectory>target/test-classes </sourcedirectory> <sourcefile>web-tests.xml</sourcefile> <host>${cargo.host}</host> <port>${cargo.port}</port> <target>run-all-tests</target> <webapp.name>${war.name}</webapp.name> </configuration> </execution> <execution> <id>webtest-report</id> <phase>post-integration-test</phase> <goals> <goal>report</goal> </goals> <configuration> <resultpath>target/test-classes/webtest-results </resultpath> </configuration> </execution> </executions> </plugin> And the created webtests result in target/site/webtest looks fine. But I cannot get these results included to my site. When site is created, webtest results are not included. This has probably to do with that tests are bound to integration-test which is not done when site is created. I need to have web tests bound to integration test phase, since my deployment-to-web-server etc tasks are build around that assumption. I have also tried configuration where I use the simple example from http://people.apache.org/~sgoeschl/download/maven-plugins/webtest-maven-pl ugin/site/usage.html and don't specify anything else than binding the webtest-tests to integration-test phase, but this does not work either. Adding webtest-plugin to "reporting" does not seem to affect anything. When I generate site with "mvn site" nothing webtest-related seems to happen. Basically no matter how I try to confgure it, my site does not contain canoo webtest under "project reports". Almost forgot, the setup is multimodule, I have a root pom.xml and under it core/pom.xml and web/pom.xml and webtest naturally relates only to web. How should I configure this? I could also create my site with > mvn clean install site, for example, if that would help.

