This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 204480 - Support for Surefire 2.10 <reportFileSuffix>
Summary: Support for Surefire 2.10 <reportFileSuffix>
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.0.1
Hardware: All All
: P3 normal with 3 votes (vote)
Assignee: Milos Kleint
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-31 21:48 UTC by pekarna
Modified: 2012-04-20 10:10 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pekarna 2011-10-31 21:48:10 UTC
If a maven build fails due to FAILED test, NetBeans shows a link to respective test log file (which is great).

As of 2.10, Maven's Surefire plugin contains Rosta Svoboda's patch which adds <reportNameSuffix>, so the log file name is now:
    
    <FQCN>[-<reportNameSuffix>].txt
    <FQCN>[-<reportNameSuffix>]-output.txt
    TEST-<FQCN>[-<reportNameSuffix>].xml

Also, file TEST-testClassName-reportNameSuffix.xml has changed attributes testsuite/@name and testcase/@classname - reportNameSuffix is added to the attribute value.

Could you please reflect this feature?
Thanks.

http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html#reportNameSuffix
Comment 1 Milos Kleint 2012-04-19 07:08:29 UTC
jungi: does this affect some code in the testng codebase?
Comment 2 Milos Kleint 2012-04-19 08:40:16 UTC
https://hg.netbeans.org/core-main/rev/753a5c8c9aa2
Comment 3 Lukas Jungmann 2012-04-19 08:43:31 UTC
(In reply to comment #1)
> jungi: does this affect some code in the testng codebase?

I don't think so as long as NB reads correct output from surefire
Comment 4 Quality Engineering 2012-04-20 10:10:33 UTC
Integrated into 'main-golden', will be available in build *201204200400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/753a5c8c9aa2
User: Milos Kleint <mkleint@netbeans.org>
Log: #204480 make use of the reportNameSuffix surefire parameter when processing test execution output