maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Gudian (JIRA)" <>
Subject [jira] (SUREFIRE-943) Failing tests in TEST-*.xml file contain currupt information
Date Sat, 29 Dec 2012 23:37:13 GMT


Andreas Gudian commented on SUREFIRE-943:

Opened a pull reqest with an IT and a proposed fix:
> Failing tests in TEST-*.xml file contain currupt information
> ------------------------------------------------------------
>                 Key: SUREFIRE-943
>                 URL:
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Maven Surefire Plugin
>    Affects Versions: 2.13
>            Reporter: Andreas Gudian
>            Priority: Critical
> I have test classes with two test methods: one is {{test()}} (always passes), the other
one is {{fails()}} (well, it is supposed to fail).
> This is the output in the TEST-*.xml file:
> {code}
>   <testcase time="0.502" classname="org.sample.module.My1Test" name="org.sample.module.My1Test"/>
>   <testcase time="0.503" classname="Description" name="fails">
>     <failure message="Not yet implemented" type="java.lang.AssertionError">java.lang.AssertionError:
Not yet implemented
> 	at
> 	at org.sample.module.My1Test.fails(
> </failure>
>   </testcase>
> {code}
> Problem 1: for the successful testcase the {{name}} is also the class name and not the
name of the test case? I would expect {{test}}, as this is the method name.
> Problem 2 (that's the big one): the failed test contains "Description" as {{classname}}.
That totally messes up my Hudson report and is a deal-breaker for the 2.13 version. I did
not see that during the test of the staged version :(.
> I used the junit47 provider and junit 4.11. 
> I'll prepare a sample or an IT for that later.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message