Curious, so I looked it up on google:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<useFile>false</useFile>
</configuration>
</plugin>
One question that comes to mind is what happens then to the site, if
surefire doesn't produce files? Does the reporting go up the creek,
meaning I have to disable the config option again to run the site deploy?
LAMY Olivier wrote:
Try the subject of your email "Display the failed test from surefire" in google
;-)
--
Olivier
-----Message d'origine-----
De : Stephen More [mailto:[EMAIL PROTECTED]
Envoyé : jeudi 5 octobre 2006 19:47
À : [email protected]
Objet : Display the failed test from surefire
I am fairly new to maven2. After I run "mvn test" I see output like:
Compiling 1 source file to /home/smore/wip/hello/target/test-classes
[INFO] [surefire:test]
[INFO] Setting reports dir: /home/smore/wip/hello/target/surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
[surefire] Running HelloTest
[surefire] Tests run: 3, Failures: 1, Errors: 0, Time elapsed: 0.05 sec
<<<<<<<< FAILURE !!
[INFO] ------------------------------------------------------------------------
Then on failure I have to manually:
grep 'FAILURE' /home/smore/wip/hello/target/surefire-reports/HelloTest.txt
to see that testHello2 actually failed.
Can this be automated by some plugin to display the name of the test that
actually failed ?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]