[
https://jira.codehaus.org/browse/SUREFIRE-1017?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=329796#comment-329796
]
Christian Spriegel commented on SUREFIRE-1017:
----------------------------------------------
I created myself a patch, which works nicely for me:
{code}
diff --git
a/surefire-providers/common-java5/src/main/java/org/apache/maven/surefire/report/SmartStackTraceParser.java
b/surefire-providers/common-java5/src/main/java/org/apache/maven/surefire/report/SmartStackTraceParser.java
index d1b3ff2..8ac00b1 100644
---
a/surefire-providers/common-java5/src/main/java/org/apache/maven/surefire/report/SmartStackTraceParser.java
+++
b/surefire-providers/common-java5/src/main/java/org/apache/maven/surefire/report/SmartStackTraceParser.java
@@ -92,7 +92,7 @@ public String getString()
StackTraceElement stackTraceElement;
if ( stackTraceElements.isEmpty() )
{
- result.append( simpleName );
+ result.append( testClassName );
if (StringUtils.isNotEmpty( testMethodName ))
{
result.append( "." ).append( testMethodName );
@@ -105,10 +105,10 @@ public String getString()
stackTraceElement = stackTraceElements.get( i );
if ( i == 0 )
{
- result.append( simpleName );
+ result.append( testClassName );
if ( !stackTraceElement.getClassName().equals(
testClassName ) )
{
- result.append( ">" );
+ result.append( " > " );
}
else
{
{code}
Output:
{code}
Failed tests:
com.mycomp.roundtrip.v05.intermov.start.RoundtripTest >
AbstractTestNGSpringContextTestsMov.run:196->test:38 TODO - Intermov start not
implemented in Core yet!
...
com.mycomp.roundtrip.v09.masterdata.simple.RoundtripTest >
AbstractTestNGSpringContextTestsMov.run:196->test:157->AbstractRoundtripTestFramework.runAction:379
ยป Runtime
Tests run: 829, Failures: 9, Errors: 0, Skipped: 0
{code}
> Failures do not show test-package since 2.13
> --------------------------------------------
>
> Key: SUREFIRE-1017
> URL: https://jira.codehaus.org/browse/SUREFIRE-1017
> Project: Maven Surefire
> Issue Type: Improvement
> Affects Versions: 2.13, 2.14, 2.15
> Reporter: Christian Spriegel
>
> Older versions of surefire always showed the package name of each failed test
> in the result overview.
> Since surefire 2.13 I simply get the classname:
> {code}
> Results :
> Failed tests:
> RoundtripTest>AbstractTestNGSpringContextTests.run:196->test:115 error
> RoundtripTest>AbstractTestNGSpringContextTests.run:196->test:115 error
> {code}
> As you can see I have two tests called RoundtripTest in the overview. These
> testclasses are in different packages, but I do not know which one is which.
> My testsuite has 830 testcases, where ~650 are called RoundtripTest. So its
> quite hard now for me to identify the failing tests.
> SUREFIRE-936 seems to have changed this. I have not checked the git commit,
> but from the description I assume that was the change.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira