Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Cannot Reproduce
-
Affects Version/s: None
-
Fix Version/s: 2.4
-
Component/s: xml generation
-
Labels:None
-
Environment:release 2.0 of maven-surfire-plugin
mvn 2.0.4
-
Testcase included:yes
-
Number of attachments :
Description
since 2-3 weeks i have wrong information into my junit test tun (mvn test for example)
In fact, the *.txt are right, but the corresponding xml file have wrong entry. i means additionnal testcase are present ninto the testcase section.
you can find exmple in attachement (ThreadWarningSystemTest for example). You can see that the error number are good (because read into the attribute of the first xml tag) but in several TestSuite, we have testcase form other testsuite.
I don't know if this errors comes from maven dependancies update.
What i am sure is:
1/ a little bit of source modification into my project since this error appears.
2/ no new maven dependancies into my project
3/ i use only ibilio/maven2 as repository.
This errors can'be shown on other projet and other not ...
I have a workaround to solve this issue but with low performance:
I use the option "fork per test" and the reports is right.
Maybe a way to be investigate can be the temporaly file created by the command line:
Forking command line: java -classpath
> C:\HOMEWARE\maven-2_local\org\apache\maven\surefire\surefire-api\2.0\surefire-api-2.0.jar;C:\HOMEWARE\maven-2_local\o
> rg\codehaus\plexus\plexus-utils\1.1\plexus-utils-1.1.jar;C:\HOMEWARE\maven-2_local\org\apache\maven\surefire\surefire-booter\2.0\surefire-booter-2.0.jar or
> g.apache.maven.surefire.booter.SurefireBooter C:\temp\surefire40840tmp C:\temp\surefire40841tmp
Any Idea ?
Thx
Christophe
Attachments
Issue Links
| This issue duplicates: | ||||
| SUREFIRE-52 | XML Reports include testcases from previous tests |
|
|
|
I am also seeing this same bug.
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