You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Rostislav Svoboda (JIRA)" <ji...@codehaus.org> on 2011/06/22 14:34:42 UTC
[jira] Created: (SUREFIRE-750) Add custom name suffix for
surefire-reports (xml and txt)
Add custom name suffix for surefire-reports (xml and txt)
---------------------------------------------------------
Key: SUREFIRE-750
URL: https://jira.codehaus.org/browse/SUREFIRE-750
Project: Maven Surefire
Issue Type: Improvement
Components: Maven Failsafe Plugin, Maven Surefire Plugin, xml generation
Reporter: Rostislav Svoboda
Priority: Critical
Attachments: reportNameSuffix.patch
Hi.
I'd to add support in surefire for custom name suffix for tests in surefire-reports.
Motivation 1):
I have more modules, some modules are sharing tests from another using org.codehaus.mojo:build-helper-maven-plugin.
I'd like to have txt and xml files with some differentiator to determine in which module tests were executed.
Motivation 2):
I have defined several executions where I use different parameters and execute the same tests in each execution.
Again, I'd like to have txt and xml files with some differentiator.
Solution:
Introduce new configuration property reportNameSuffix.
Patch for this improvement is included.
Tested:
Yes, <reportNameSuffix>customText</reportNameSuffix> added into surefire plugin configuration and received these files:
org.xyz.test.componentA.ComponentAUnitTest-customText-output.txt
org.xyz.test.componentA.ComponentAUnitTest-customText.txt
org.xyz.test.componentB.ComponentBUnitTest-customText-output.txt
org.xyz.test.componentB.ComponentBUnitTest-customText.txt
TEST-org.xyz.test.componentA.ComponentAUnitTest-customText.xml
TEST-org.xyz.test.componentB.ComponentBUnitTest-customText.xml
Tested without <reportNameSuffix> defined too, original file names and content generated.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Closed: (SUREFIRE-750) Add custom name suffix for
surefire-reports (xml and txt)
Posted by "Paul Gier (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/SUREFIRE-750?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul Gier closed SUREFIRE-750.
------------------------------
Resolution: Fixed
Applied patch in [r1143207|http://svn.apache.org/viewvc?view=revision&revision=1143207]. Thanks!
> Add custom name suffix for surefire-reports (xml and txt)
> ---------------------------------------------------------
>
> Key: SUREFIRE-750
> URL: https://jira.codehaus.org/browse/SUREFIRE-750
> Project: Maven Surefire
> Issue Type: Improvement
> Components: Maven Failsafe Plugin, Maven Surefire Plugin, xml generation
> Reporter: Rostislav Svoboda
> Assignee: Paul Gier
> Priority: Critical
> Fix For: 2.10
>
> Attachments: reportNameSuffix.patch, reportNameSuffix-remake.patch, reportNameSuffix-tests.patch
>
>
> Hi.
> I'd to add support in surefire for custom name suffix for tests in surefire-reports.
> Motivation 1):
> I have more modules, some modules are sharing tests from another using org.codehaus.mojo:build-helper-maven-plugin.
> I'd like to have txt and xml files with some differentiator to determine in which module tests were executed.
> Motivation 2):
> I have defined several executions where I use different parameters and execute the same tests in each execution.
> Again, I'd like to have txt and xml files with some differentiator.
> Solution:
> Introduce new configuration property reportNameSuffix.
> Patch for this improvement is included.
> Tested:
> Yes, <reportNameSuffix>customText</reportNameSuffix> added into surefire plugin configuration and received these files:
> org.xyz.test.componentA.ComponentAUnitTest-customText-output.txt
> org.xyz.test.componentA.ComponentAUnitTest-customText.txt
> org.xyz.test.componentB.ComponentBUnitTest-customText-output.txt
> org.xyz.test.componentB.ComponentBUnitTest-customText.txt
> TEST-org.xyz.test.componentA.ComponentAUnitTest-customText.xml
> TEST-org.xyz.test.componentB.ComponentBUnitTest-customText.xml
> Tested without <reportNameSuffix> defined too, original file names and content generated.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (SUREFIRE-750) Add custom name suffix for
surefire-reports (xml and txt)
Posted by "Rostislav Svoboda (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/SUREFIRE-750?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=271932#comment-271932 ]
Rostislav Svoboda commented on SUREFIRE-750:
--------------------------------------------
I tried to execute testsuite with suggested changes but I still have many errors even on trunk without my changes. There are some problems with nexus on jboss.org. Will try tomorrow.
> Add custom name suffix for surefire-reports (xml and txt)
> ---------------------------------------------------------
>
> Key: SUREFIRE-750
> URL: https://jira.codehaus.org/browse/SUREFIRE-750
> Project: Maven Surefire
> Issue Type: Improvement
> Components: Maven Failsafe Plugin, Maven Surefire Plugin, xml generation
> Reporter: Rostislav Svoboda
> Priority: Critical
> Attachments: reportNameSuffix.patch, reportNameSuffix-tests.patch
>
>
> Hi.
> I'd to add support in surefire for custom name suffix for tests in surefire-reports.
> Motivation 1):
> I have more modules, some modules are sharing tests from another using org.codehaus.mojo:build-helper-maven-plugin.
> I'd like to have txt and xml files with some differentiator to determine in which module tests were executed.
> Motivation 2):
> I have defined several executions where I use different parameters and execute the same tests in each execution.
> Again, I'd like to have txt and xml files with some differentiator.
> Solution:
> Introduce new configuration property reportNameSuffix.
> Patch for this improvement is included.
> Tested:
> Yes, <reportNameSuffix>customText</reportNameSuffix> added into surefire plugin configuration and received these files:
> org.xyz.test.componentA.ComponentAUnitTest-customText-output.txt
> org.xyz.test.componentA.ComponentAUnitTest-customText.txt
> org.xyz.test.componentB.ComponentBUnitTest-customText-output.txt
> org.xyz.test.componentB.ComponentBUnitTest-customText.txt
> TEST-org.xyz.test.componentA.ComponentAUnitTest-customText.xml
> TEST-org.xyz.test.componentB.ComponentBUnitTest-customText.xml
> Tested without <reportNameSuffix> defined too, original file names and content generated.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (SUREFIRE-750) Add custom name suffix for
surefire-reports (xml and txt)
Posted by "Paul Gier (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/SUREFIRE-750?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=271856#comment-271856 ]
Paul Gier commented on SUREFIRE-750:
------------------------------------
The patches currently cause several failures in the integration tests. Looks like at least some of them are due to the change in the StartupReportConfiguration constructor. The old constructor should probably be left in place, and provide some default value for the new suffix parameter.
> Add custom name suffix for surefire-reports (xml and txt)
> ---------------------------------------------------------
>
> Key: SUREFIRE-750
> URL: https://jira.codehaus.org/browse/SUREFIRE-750
> Project: Maven Surefire
> Issue Type: Improvement
> Components: Maven Failsafe Plugin, Maven Surefire Plugin, xml generation
> Reporter: Rostislav Svoboda
> Priority: Critical
> Attachments: reportNameSuffix.patch, reportNameSuffix-tests.patch
>
>
> Hi.
> I'd to add support in surefire for custom name suffix for tests in surefire-reports.
> Motivation 1):
> I have more modules, some modules are sharing tests from another using org.codehaus.mojo:build-helper-maven-plugin.
> I'd like to have txt and xml files with some differentiator to determine in which module tests were executed.
> Motivation 2):
> I have defined several executions where I use different parameters and execute the same tests in each execution.
> Again, I'd like to have txt and xml files with some differentiator.
> Solution:
> Introduce new configuration property reportNameSuffix.
> Patch for this improvement is included.
> Tested:
> Yes, <reportNameSuffix>customText</reportNameSuffix> added into surefire plugin configuration and received these files:
> org.xyz.test.componentA.ComponentAUnitTest-customText-output.txt
> org.xyz.test.componentA.ComponentAUnitTest-customText.txt
> org.xyz.test.componentB.ComponentBUnitTest-customText-output.txt
> org.xyz.test.componentB.ComponentBUnitTest-customText.txt
> TEST-org.xyz.test.componentA.ComponentAUnitTest-customText.xml
> TEST-org.xyz.test.componentB.ComponentBUnitTest-customText.xml
> Tested without <reportNameSuffix> defined too, original file names and content generated.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (SUREFIRE-750) Add custom name suffix for
surefire-reports (xml and txt)
Posted by "Paul Gier (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/SUREFIRE-750?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul Gier updated SUREFIRE-750:
-------------------------------
Fix Version/s: 2.10
Assignee: Paul Gier
> Add custom name suffix for surefire-reports (xml and txt)
> ---------------------------------------------------------
>
> Key: SUREFIRE-750
> URL: https://jira.codehaus.org/browse/SUREFIRE-750
> Project: Maven Surefire
> Issue Type: Improvement
> Components: Maven Failsafe Plugin, Maven Surefire Plugin, xml generation
> Reporter: Rostislav Svoboda
> Assignee: Paul Gier
> Priority: Critical
> Fix For: 2.10
>
> Attachments: reportNameSuffix.patch, reportNameSuffix-remake.patch, reportNameSuffix-tests.patch
>
>
> Hi.
> I'd to add support in surefire for custom name suffix for tests in surefire-reports.
> Motivation 1):
> I have more modules, some modules are sharing tests from another using org.codehaus.mojo:build-helper-maven-plugin.
> I'd like to have txt and xml files with some differentiator to determine in which module tests were executed.
> Motivation 2):
> I have defined several executions where I use different parameters and execute the same tests in each execution.
> Again, I'd like to have txt and xml files with some differentiator.
> Solution:
> Introduce new configuration property reportNameSuffix.
> Patch for this improvement is included.
> Tested:
> Yes, <reportNameSuffix>customText</reportNameSuffix> added into surefire plugin configuration and received these files:
> org.xyz.test.componentA.ComponentAUnitTest-customText-output.txt
> org.xyz.test.componentA.ComponentAUnitTest-customText.txt
> org.xyz.test.componentB.ComponentBUnitTest-customText-output.txt
> org.xyz.test.componentB.ComponentBUnitTest-customText.txt
> TEST-org.xyz.test.componentA.ComponentAUnitTest-customText.xml
> TEST-org.xyz.test.componentB.ComponentBUnitTest-customText.xml
> Tested without <reportNameSuffix> defined too, original file names and content generated.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Issue Comment Edited: (SUREFIRE-750) Add custom name suffix
for surefire-reports (xml and txt)
Posted by "Paul Gier (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/SUREFIRE-750?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=271933#comment-271933 ]
Paul Gier edited comment on SUREFIRE-750 at 6/30/11 10:26 AM:
--------------------------------------------------------------
You should run the surefire build and integration tests with only the central repo enabled. You may need to build against a clean local repo. I was able to run the integration tests on current trunk without any failures.
was (Author: pgier):
You should run the surefire build and integration tests with only the central repo enabled. You may need to build against a clean local repo.
> Add custom name suffix for surefire-reports (xml and txt)
> ---------------------------------------------------------
>
> Key: SUREFIRE-750
> URL: https://jira.codehaus.org/browse/SUREFIRE-750
> Project: Maven Surefire
> Issue Type: Improvement
> Components: Maven Failsafe Plugin, Maven Surefire Plugin, xml generation
> Reporter: Rostislav Svoboda
> Priority: Critical
> Attachments: reportNameSuffix.patch, reportNameSuffix-tests.patch
>
>
> Hi.
> I'd to add support in surefire for custom name suffix for tests in surefire-reports.
> Motivation 1):
> I have more modules, some modules are sharing tests from another using org.codehaus.mojo:build-helper-maven-plugin.
> I'd like to have txt and xml files with some differentiator to determine in which module tests were executed.
> Motivation 2):
> I have defined several executions where I use different parameters and execute the same tests in each execution.
> Again, I'd like to have txt and xml files with some differentiator.
> Solution:
> Introduce new configuration property reportNameSuffix.
> Patch for this improvement is included.
> Tested:
> Yes, <reportNameSuffix>customText</reportNameSuffix> added into surefire plugin configuration and received these files:
> org.xyz.test.componentA.ComponentAUnitTest-customText-output.txt
> org.xyz.test.componentA.ComponentAUnitTest-customText.txt
> org.xyz.test.componentB.ComponentBUnitTest-customText-output.txt
> org.xyz.test.componentB.ComponentBUnitTest-customText.txt
> TEST-org.xyz.test.componentA.ComponentAUnitTest-customText.xml
> TEST-org.xyz.test.componentB.ComponentBUnitTest-customText.xml
> Tested without <reportNameSuffix> defined too, original file names and content generated.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (SUREFIRE-750) Add custom name suffix for
surefire-reports (xml and txt)
Posted by "Paul Gier (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/SUREFIRE-750?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=271933#comment-271933 ]
Paul Gier commented on SUREFIRE-750:
------------------------------------
You should run the surefire build and integration tests with only the central repo enabled. You may need to build against a clean local repo.
> Add custom name suffix for surefire-reports (xml and txt)
> ---------------------------------------------------------
>
> Key: SUREFIRE-750
> URL: https://jira.codehaus.org/browse/SUREFIRE-750
> Project: Maven Surefire
> Issue Type: Improvement
> Components: Maven Failsafe Plugin, Maven Surefire Plugin, xml generation
> Reporter: Rostislav Svoboda
> Priority: Critical
> Attachments: reportNameSuffix.patch, reportNameSuffix-tests.patch
>
>
> Hi.
> I'd to add support in surefire for custom name suffix for tests in surefire-reports.
> Motivation 1):
> I have more modules, some modules are sharing tests from another using org.codehaus.mojo:build-helper-maven-plugin.
> I'd like to have txt and xml files with some differentiator to determine in which module tests were executed.
> Motivation 2):
> I have defined several executions where I use different parameters and execute the same tests in each execution.
> Again, I'd like to have txt and xml files with some differentiator.
> Solution:
> Introduce new configuration property reportNameSuffix.
> Patch for this improvement is included.
> Tested:
> Yes, <reportNameSuffix>customText</reportNameSuffix> added into surefire plugin configuration and received these files:
> org.xyz.test.componentA.ComponentAUnitTest-customText-output.txt
> org.xyz.test.componentA.ComponentAUnitTest-customText.txt
> org.xyz.test.componentB.ComponentBUnitTest-customText-output.txt
> org.xyz.test.componentB.ComponentBUnitTest-customText.txt
> TEST-org.xyz.test.componentA.ComponentAUnitTest-customText.xml
> TEST-org.xyz.test.componentB.ComponentBUnitTest-customText.xml
> Tested without <reportNameSuffix> defined too, original file names and content generated.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (SUREFIRE-750) Add custom name suffix for
surefire-reports (xml and txt)
Posted by "Rostislav Svoboda (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/SUREFIRE-750?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rostislav Svoboda updated SUREFIRE-750:
---------------------------------------
Attachment: reportNameSuffix-remake.patch
Changed code, all integration tests passed.
Paul, thanks for comments.
> Add custom name suffix for surefire-reports (xml and txt)
> ---------------------------------------------------------
>
> Key: SUREFIRE-750
> URL: https://jira.codehaus.org/browse/SUREFIRE-750
> Project: Maven Surefire
> Issue Type: Improvement
> Components: Maven Failsafe Plugin, Maven Surefire Plugin, xml generation
> Reporter: Rostislav Svoboda
> Priority: Critical
> Attachments: reportNameSuffix.patch, reportNameSuffix-remake.patch, reportNameSuffix-tests.patch
>
>
> Hi.
> I'd to add support in surefire for custom name suffix for tests in surefire-reports.
> Motivation 1):
> I have more modules, some modules are sharing tests from another using org.codehaus.mojo:build-helper-maven-plugin.
> I'd like to have txt and xml files with some differentiator to determine in which module tests were executed.
> Motivation 2):
> I have defined several executions where I use different parameters and execute the same tests in each execution.
> Again, I'd like to have txt and xml files with some differentiator.
> Solution:
> Introduce new configuration property reportNameSuffix.
> Patch for this improvement is included.
> Tested:
> Yes, <reportNameSuffix>customText</reportNameSuffix> added into surefire plugin configuration and received these files:
> org.xyz.test.componentA.ComponentAUnitTest-customText-output.txt
> org.xyz.test.componentA.ComponentAUnitTest-customText.txt
> org.xyz.test.componentB.ComponentBUnitTest-customText-output.txt
> org.xyz.test.componentB.ComponentBUnitTest-customText.txt
> TEST-org.xyz.test.componentA.ComponentAUnitTest-customText.xml
> TEST-org.xyz.test.componentB.ComponentBUnitTest-customText.xml
> Tested without <reportNameSuffix> defined too, original file names and content generated.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (SUREFIRE-750) Add custom name suffix for
surefire-reports (xml and txt)
Posted by "Rostislav Svoboda (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/SUREFIRE-750?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rostislav Svoboda updated SUREFIRE-750:
---------------------------------------
Attachment: reportNameSuffix-tests.patch
Tests for .xml .txt and -output.txt files with and without reportNameSuffix defined.
Apply this patch after reportNameSuffix.patch
> Add custom name suffix for surefire-reports (xml and txt)
> ---------------------------------------------------------
>
> Key: SUREFIRE-750
> URL: https://jira.codehaus.org/browse/SUREFIRE-750
> Project: Maven Surefire
> Issue Type: Improvement
> Components: Maven Failsafe Plugin, Maven Surefire Plugin, xml generation
> Reporter: Rostislav Svoboda
> Priority: Critical
> Attachments: reportNameSuffix.patch, reportNameSuffix-tests.patch
>
>
> Hi.
> I'd to add support in surefire for custom name suffix for tests in surefire-reports.
> Motivation 1):
> I have more modules, some modules are sharing tests from another using org.codehaus.mojo:build-helper-maven-plugin.
> I'd like to have txt and xml files with some differentiator to determine in which module tests were executed.
> Motivation 2):
> I have defined several executions where I use different parameters and execute the same tests in each execution.
> Again, I'd like to have txt and xml files with some differentiator.
> Solution:
> Introduce new configuration property reportNameSuffix.
> Patch for this improvement is included.
> Tested:
> Yes, <reportNameSuffix>customText</reportNameSuffix> added into surefire plugin configuration and received these files:
> org.xyz.test.componentA.ComponentAUnitTest-customText-output.txt
> org.xyz.test.componentA.ComponentAUnitTest-customText.txt
> org.xyz.test.componentB.ComponentBUnitTest-customText-output.txt
> org.xyz.test.componentB.ComponentBUnitTest-customText.txt
> TEST-org.xyz.test.componentA.ComponentAUnitTest-customText.xml
> TEST-org.xyz.test.componentB.ComponentBUnitTest-customText.xml
> Tested without <reportNameSuffix> defined too, original file names and content generated.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira