|
Simle test cases and results.
Hi,
I built maven-surefire-plugin from HEAD to run the testcases of ... ant and I also observed the same issue. Regards, Antoine Could someone fix this and make it the default version of the plugin ? Because of this bug, the surefire reports are rather unreadable when building multiple modules
Hi.
I am also voting for this bug to be fixed. Here is a hint for the fix: in the module surefire-api, the class org.apache.maven.surefire.report.XMLReporter public void testSetStarting(ReportEntry report) throws ReporterException { super.testSetStarting(report); results.clear(); } (before each start, previous result should be cleared. AbstractTextReporter does the same.) I tried it locally and it works. Can someone provide a guess when this fix could appear in the released plugin (e.g. maven-surefire-plugin version 2.2.1 or something) ? I cannot beleive that this bug is still unfixed, it basically makes surefire unusable with maven2!
+1, this bug's bitten me a couple of times now [10000 tests? wow! *investigate*... ohhh].
This got fixed at some point. Integration test checked in revision 597279.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Again *.txt are ok but *.xml are also including results from previous test cases.
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running TestB testB
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.125 sec
Running TestC testC
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.013 sec
Running TestA testA
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.011 sec
Results :
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0
[TEST-TestB.xml]
...
<testcase time="0.003" name="testB"/>
[TEST-TestC.xml]
...
<testcase time="0.003" name="testB"/>
<testcase time="0" name="testC"/>
[TEST-TestA.xml]
...
<testcase time="0.003" name="testB"/>
<testcase time="0" name="testC"/>
<testcase time="0.001" name="testA"/>
For further details see nick.zip attachment for the 3 very simple "helloworld" style tests (.java, .txt and .xml) files.
Cheers,
Nick