You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Rakesh Arora (JIRA)" <ji...@codehaus.org> on 2009/02/11 22:00:19 UTC
[jira] Created: (SUREFIRE-537) Rason for the Ignored/Skipped
testcases is not reported
Rason for the Ignored/Skipped testcases is not reported
-------------------------------------------------------
Key: SUREFIRE-537
URL: http://jira.codehaus.org/browse/SUREFIRE-537
Project: Maven Surefire
Issue Type: Bug
Components: Junit 4.x support, report plugin, xml generation
Affects Versions: 2.4.3
Environment: Windows XP, junit 4.4
Reporter: Rakesh Arora
Tests that are skipped with a @Ignore("Test doesn't work") annotation only appear in the report as an increment in the "Skipped" column. Name of the skipped testcases is also reported. However, the reason (i.e. "Test doesn't work") is not reported.
Quick look at the source code, it seems that it is not implemented:
In class: org.apache.maven.plugins.surefire.report.TestSuiteXmlParser
else if ( "skipped".equals( qName ) )
{
testCase.addFailure( "skipped", "skipped" ); // TODO extract real reasons
currentSuite.setNumberOfSkipped( 1 + currentSuite.getNumberOfSkipped() );
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (SUREFIRE-537) Rason for the Ignored/Skipped testcases is
not reported
Posted by "Herve Boutemy (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/SUREFIRE-537?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Herve Boutemy updated SUREFIRE-537:
-----------------------------------
Description:
Tests that are skipped with a @Ignore("Test doesn't work") annotation only appear in the report as an increment in the "Skipped" column. Name of the skipped testcases is also reported. However, the reason (i.e. "Test doesn't work") is not reported.
Quick look at the source code, it seems that it is not implemented:
In class: org.apache.maven.plugins.surefire.report.TestSuiteXmlParser
{code:java} else if ( "skipped".equals( qName ) )
{
testCase.addFailure( "skipped", "skipped" ); // TODO extract real reasons
currentSuite.setNumberOfSkipped( 1 + currentSuite.getNumberOfSkipped() );
}{code}
was:
Tests that are skipped with a @Ignore("Test doesn't work") annotation only appear in the report as an increment in the "Skipped" column. Name of the skipped testcases is also reported. However, the reason (i.e. "Test doesn't work") is not reported.
Quick look at the source code, it seems that it is not implemented:
In class: org.apache.maven.plugins.surefire.report.TestSuiteXmlParser
else if ( "skipped".equals( qName ) )
{
testCase.addFailure( "skipped", "skipped" ); // TODO extract real reasons
currentSuite.setNumberOfSkipped( 1 + currentSuite.getNumberOfSkipped() );
}
> Rason for the Ignored/Skipped testcases is not reported
> -------------------------------------------------------
>
> Key: SUREFIRE-537
> URL: https://jira.codehaus.org/browse/SUREFIRE-537
> Project: Maven Surefire
> Issue Type: New Feature
> Components: Junit 4.x support, Maven Surefire Report Plugin, xml generation
> Affects Versions: 2.4.3
> Environment: Windows XP, junit 4.4
> Reporter: Rakesh Arora
> Assignee: Kristian Rosenvold
>
> Tests that are skipped with a @Ignore("Test doesn't work") annotation only appear in the report as an increment in the "Skipped" column. Name of the skipped testcases is also reported. However, the reason (i.e. "Test doesn't work") is not reported.
> Quick look at the source code, it seems that it is not implemented:
> In class: org.apache.maven.plugins.surefire.report.TestSuiteXmlParser
> {code:java} else if ( "skipped".equals( qName ) )
> {
> testCase.addFailure( "skipped", "skipped" ); // TODO extract real reasons
> currentSuite.setNumberOfSkipped( 1 + currentSuite.getNumberOfSkipped() );
> }{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (SUREFIRE-537) Reason for the Ignored/Skipped testcases is
not reported
Posted by "Kristian Rosenvold (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/SUREFIRE-537?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=287220#comment-287220 ]
Kristian Rosenvold commented on SUREFIRE-537:
---------------------------------------------
I think adding a message attribute sounds like a good solution
> Reason for the Ignored/Skipped testcases is not reported
> --------------------------------------------------------
>
> Key: SUREFIRE-537
> URL: https://jira.codehaus.org/browse/SUREFIRE-537
> Project: Maven Surefire
> Issue Type: New Feature
> Components: Junit 4.x support, Maven Surefire Report Plugin, xml generation
> Affects Versions: 2.4.3
> Environment: Windows XP, junit 4.4
> Reporter: Rakesh Arora
> Assignee: Kristian Rosenvold
>
> Tests that are skipped with a @Ignore("Test doesn't work") annotation only appear in the report as an increment in the "Skipped" column. Name of the skipped testcases is also reported. However, the reason (i.e. "Test doesn't work") is not reported.
> Quick look at the source code, it seems that it is not implemented:
> In class: org.apache.maven.plugins.surefire.report.TestSuiteXmlParser
> {code:java} else if ( "skipped".equals( qName ) )
> {
> testCase.addFailure( "skipped", "skipped" ); // TODO extract real reasons
> currentSuite.setNumberOfSkipped( 1 + currentSuite.getNumberOfSkipped() );
> }{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (SUREFIRE-537) Rason for the Ignored/Skipped
testcases is not reported
Posted by "Kristian Rosenvold (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/SUREFIRE-537?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kristian Rosenvold updated SUREFIRE-537:
----------------------------------------
Fix Version/s: 2.8
Assignee: Kristian Rosenvold
Issue Type: New Feature (was: Improvement)
> Rason for the Ignored/Skipped testcases is not reported
> -------------------------------------------------------
>
> Key: SUREFIRE-537
> URL: http://jira.codehaus.org/browse/SUREFIRE-537
> Project: Maven Surefire
> Issue Type: New Feature
> Components: Junit 4.x support, Maven Surefire Report Plugin, xml generation
> Affects Versions: 2.4.3
> Environment: Windows XP, junit 4.4
> Reporter: Rakesh Arora
> Assignee: Kristian Rosenvold
> Fix For: 2.8
>
>
> Tests that are skipped with a @Ignore("Test doesn't work") annotation only appear in the report as an increment in the "Skipped" column. Name of the skipped testcases is also reported. However, the reason (i.e. "Test doesn't work") is not reported.
> Quick look at the source code, it seems that it is not implemented:
> In class: org.apache.maven.plugins.surefire.report.TestSuiteXmlParser
> else if ( "skipped".equals( qName ) )
> {
> testCase.addFailure( "skipped", "skipped" ); // TODO extract real reasons
> currentSuite.setNumberOfSkipped( 1 + currentSuite.getNumberOfSkipped() );
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (SUREFIRE-537) Reason for the Ignored/Skipped testcases is
not reported
Posted by "Harry Soehalim (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/SUREFIRE-537?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=296449#comment-296449 ]
Harry Soehalim commented on SUREFIRE-537:
-----------------------------------------
I've tried maven-surefire-plugin version 2.12, and I still don't see any of the "skipped" tests being reported. Perhaps, I'm missing something here?
output:
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.037 sec
> Reason for the Ignored/Skipped testcases is not reported
> --------------------------------------------------------
>
> Key: SUREFIRE-537
> URL: https://jira.codehaus.org/browse/SUREFIRE-537
> Project: Maven Surefire
> Issue Type: New Feature
> Components: Junit 4.x support, Maven Surefire Report Plugin, xml generation
> Affects Versions: 2.4.3
> Environment: Windows XP, junit 4.4
> Reporter: Rakesh Arora
> Assignee: Kristian Rosenvold
> Fix For: 2.12
>
>
> Tests that are skipped with a @Ignore("Test doesn't work") annotation only appear in the report as an increment in the "Skipped" column. Name of the skipped testcases is also reported. However, the reason (i.e. "Test doesn't work") is not reported.
> Quick look at the source code, it seems that it is not implemented:
> In class: org.apache.maven.plugins.surefire.report.TestSuiteXmlParser
> {code:java} else if ( "skipped".equals( qName ) )
> {
> testCase.addFailure( "skipped", "skipped" ); // TODO extract real reasons
> currentSuite.setNumberOfSkipped( 1 + currentSuite.getNumberOfSkipped() );
> }{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (SUREFIRE-537) Reason for the Ignored/Skipped testcases is
not reported
Posted by "Kristian Rosenvold (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/SUREFIRE-537?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=296460#comment-296460 ]
Kristian Rosenvold commented on SUREFIRE-537:
---------------------------------------------
When running mvn -Dsurefire:version=2.12 on the test project at https://svn.apache.org/repos/asf/maven/surefire/trunk/surefire-integration-tests/src/test/resources/junit-ignore I certainly see ignored tests being reported as skipped. If you're missing something, please file a separate issue and be a lot more specific about what you're missing, maybe try to reproduce in context of the test project so you can file a specific bug.
> Reason for the Ignored/Skipped testcases is not reported
> --------------------------------------------------------
>
> Key: SUREFIRE-537
> URL: https://jira.codehaus.org/browse/SUREFIRE-537
> Project: Maven Surefire
> Issue Type: New Feature
> Components: Junit 4.x support, Maven Surefire Report Plugin, xml generation
> Affects Versions: 2.4.3
> Environment: Windows XP, junit 4.4
> Reporter: Rakesh Arora
> Assignee: Kristian Rosenvold
> Fix For: 2.12
>
>
> Tests that are skipped with a @Ignore("Test doesn't work") annotation only appear in the report as an increment in the "Skipped" column. Name of the skipped testcases is also reported. However, the reason (i.e. "Test doesn't work") is not reported.
> Quick look at the source code, it seems that it is not implemented:
> In class: org.apache.maven.plugins.surefire.report.TestSuiteXmlParser
> {code:java} else if ( "skipped".equals( qName ) )
> {
> testCase.addFailure( "skipped", "skipped" ); // TODO extract real reasons
> currentSuite.setNumberOfSkipped( 1 + currentSuite.getNumberOfSkipped() );
> }{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (SUREFIRE-537) Reason for the Ignored/Skipped testcases is
not reported
Posted by "Herve Boutemy (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/SUREFIRE-537?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Herve Boutemy updated SUREFIRE-537:
-----------------------------------
Summary: Reason for the Ignored/Skipped testcases is not reported (was: Rason for the Ignored/Skipped testcases is not reported)
> Reason for the Ignored/Skipped testcases is not reported
> --------------------------------------------------------
>
> Key: SUREFIRE-537
> URL: https://jira.codehaus.org/browse/SUREFIRE-537
> Project: Maven Surefire
> Issue Type: New Feature
> Components: Junit 4.x support, Maven Surefire Report Plugin, xml generation
> Affects Versions: 2.4.3
> Environment: Windows XP, junit 4.4
> Reporter: Rakesh Arora
> Assignee: Kristian Rosenvold
>
> Tests that are skipped with a @Ignore("Test doesn't work") annotation only appear in the report as an increment in the "Skipped" column. Name of the skipped testcases is also reported. However, the reason (i.e. "Test doesn't work") is not reported.
> Quick look at the source code, it seems that it is not implemented:
> In class: org.apache.maven.plugins.surefire.report.TestSuiteXmlParser
> {code:java} else if ( "skipped".equals( qName ) )
> {
> testCase.addFailure( "skipped", "skipped" ); // TODO extract real reasons
> currentSuite.setNumberOfSkipped( 1 + currentSuite.getNumberOfSkipped() );
> }{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Work started: (SUREFIRE-537) Rason for the Ignored/Skipped
testcases is not reported
Posted by "Kristian Rosenvold (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/SUREFIRE-537?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Work on SUREFIRE-537 started by Kristian Rosenvold.
> Rason for the Ignored/Skipped testcases is not reported
> -------------------------------------------------------
>
> Key: SUREFIRE-537
> URL: http://jira.codehaus.org/browse/SUREFIRE-537
> Project: Maven Surefire
> Issue Type: New Feature
> Components: Junit 4.x support, Maven Surefire Report Plugin, xml generation
> Affects Versions: 2.4.3
> Environment: Windows XP, junit 4.4
> Reporter: Rakesh Arora
> Assignee: Kristian Rosenvold
> Fix For: 2.8
>
>
> Tests that are skipped with a @Ignore("Test doesn't work") annotation only appear in the report as an increment in the "Skipped" column. Name of the skipped testcases is also reported. However, the reason (i.e. "Test doesn't work") is not reported.
> Quick look at the source code, it seems that it is not implemented:
> In class: org.apache.maven.plugins.surefire.report.TestSuiteXmlParser
> else if ( "skipped".equals( qName ) )
> {
> testCase.addFailure( "skipped", "skipped" ); // TODO extract real reasons
> currentSuite.setNumberOfSkipped( 1 + currentSuite.getNumberOfSkipped() );
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (SUREFIRE-537) Rason for the Ignored/Skipped
testcases is not reported
Posted by "Kristian Rosenvold (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/SUREFIRE-537?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kristian Rosenvold updated SUREFIRE-537:
----------------------------------------
Fix Version/s: (was: 2.8)
> Rason for the Ignored/Skipped testcases is not reported
> -------------------------------------------------------
>
> Key: SUREFIRE-537
> URL: http://jira.codehaus.org/browse/SUREFIRE-537
> Project: Maven Surefire
> Issue Type: New Feature
> Components: Junit 4.x support, Maven Surefire Report Plugin, xml generation
> Affects Versions: 2.4.3
> Environment: Windows XP, junit 4.4
> Reporter: Rakesh Arora
> Assignee: Kristian Rosenvold
>
> Tests that are skipped with a @Ignore("Test doesn't work") annotation only appear in the report as an increment in the "Skipped" column. Name of the skipped testcases is also reported. However, the reason (i.e. "Test doesn't work") is not reported.
> Quick look at the source code, it seems that it is not implemented:
> In class: org.apache.maven.plugins.surefire.report.TestSuiteXmlParser
> else if ( "skipped".equals( qName ) )
> {
> testCase.addFailure( "skipped", "skipped" ); // TODO extract real reasons
> currentSuite.setNumberOfSkipped( 1 + currentSuite.getNumberOfSkipped() );
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (SUREFIRE-537) Reason for the Ignored/Skipped testcases is
not reported
Posted by "Herve Boutemy (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/SUREFIRE-537?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=287186#comment-287186 ]
Herve Boutemy commented on SUREFIRE-537:
----------------------------------------
py.test seem to have implemented the feature in the XML report they produce by using message attribute to skipped element (like error or failure): see http://lists.idyll.org/pipermail/testing-in-python/2011-March/003930.html
this message does not seem to be supported by JENKINS, for example, see https://issues.jenkins-ci.org/browse/JENKINS-8713
but add such message attribute to actual "skipped" element generated by Surefire should not cause any harm
> Reason for the Ignored/Skipped testcases is not reported
> --------------------------------------------------------
>
> Key: SUREFIRE-537
> URL: https://jira.codehaus.org/browse/SUREFIRE-537
> Project: Maven Surefire
> Issue Type: New Feature
> Components: Junit 4.x support, Maven Surefire Report Plugin, xml generation
> Affects Versions: 2.4.3
> Environment: Windows XP, junit 4.4
> Reporter: Rakesh Arora
> Assignee: Kristian Rosenvold
>
> Tests that are skipped with a @Ignore("Test doesn't work") annotation only appear in the report as an increment in the "Skipped" column. Name of the skipped testcases is also reported. However, the reason (i.e. "Test doesn't work") is not reported.
> Quick look at the source code, it seems that it is not implemented:
> In class: org.apache.maven.plugins.surefire.report.TestSuiteXmlParser
> {code:java} else if ( "skipped".equals( qName ) )
> {
> testCase.addFailure( "skipped", "skipped" ); // TODO extract real reasons
> currentSuite.setNumberOfSkipped( 1 + currentSuite.getNumberOfSkipped() );
> }{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (SUREFIRE-537) Reason for the Ignored/Skipped testcases is
not reported
Posted by "Kristian Rosenvold (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/SUREFIRE-537?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kristian Rosenvold closed SUREFIRE-537.
---------------------------------------
Resolution: Fixed
Fix Version/s: 2.12
Fixed in r1236882
> Reason for the Ignored/Skipped testcases is not reported
> --------------------------------------------------------
>
> Key: SUREFIRE-537
> URL: https://jira.codehaus.org/browse/SUREFIRE-537
> Project: Maven Surefire
> Issue Type: New Feature
> Components: Junit 4.x support, Maven Surefire Report Plugin, xml generation
> Affects Versions: 2.4.3
> Environment: Windows XP, junit 4.4
> Reporter: Rakesh Arora
> Assignee: Kristian Rosenvold
> Fix For: 2.12
>
>
> Tests that are skipped with a @Ignore("Test doesn't work") annotation only appear in the report as an increment in the "Skipped" column. Name of the skipped testcases is also reported. However, the reason (i.e. "Test doesn't work") is not reported.
> Quick look at the source code, it seems that it is not implemented:
> In class: org.apache.maven.plugins.surefire.report.TestSuiteXmlParser
> {code:java} else if ( "skipped".equals( qName ) )
> {
> testCase.addFailure( "skipped", "skipped" ); // TODO extract real reasons
> currentSuite.setNumberOfSkipped( 1 + currentSuite.getNumberOfSkipped() );
> }{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Work stopped: (SUREFIRE-537) Rason for the Ignored/Skipped
testcases is not reported
Posted by "Kristian Rosenvold (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/SUREFIRE-537?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Work on SUREFIRE-537 stopped by Kristian Rosenvold.
> Rason for the Ignored/Skipped testcases is not reported
> -------------------------------------------------------
>
> Key: SUREFIRE-537
> URL: http://jira.codehaus.org/browse/SUREFIRE-537
> Project: Maven Surefire
> Issue Type: New Feature
> Components: Junit 4.x support, Maven Surefire Report Plugin, xml generation
> Affects Versions: 2.4.3
> Environment: Windows XP, junit 4.4
> Reporter: Rakesh Arora
> Assignee: Kristian Rosenvold
> Fix For: 2.8
>
>
> Tests that are skipped with a @Ignore("Test doesn't work") annotation only appear in the report as an increment in the "Skipped" column. Name of the skipped testcases is also reported. However, the reason (i.e. "Test doesn't work") is not reported.
> Quick look at the source code, it seems that it is not implemented:
> In class: org.apache.maven.plugins.surefire.report.TestSuiteXmlParser
> else if ( "skipped".equals( qName ) )
> {
> testCase.addFailure( "skipped", "skipped" ); // TODO extract real reasons
> currentSuite.setNumberOfSkipped( 1 + currentSuite.getNumberOfSkipped() );
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (SUREFIRE-537) Reason for the Ignored/Skipped testcases is
not reported
Posted by "Harry Soehalim (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/SUREFIRE-537?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=296449#comment-296449 ]
Harry Soehalim edited comment on SUREFIRE-537 at 4/13/12 8:44 PM:
------------------------------------------------------------------
I've tried maven-surefire-plugin version 2.12 (and JUnit 4.10), and I still don't see any of the "skipped" tests being reported. Perhaps, I'm missing something here?
output:
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.037 sec
was (Author: hsoehalim):
I've tried maven-surefire-plugin version 2.12, and I still don't see any of the "skipped" tests being reported. Perhaps, I'm missing something here?
output:
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.037 sec
> Reason for the Ignored/Skipped testcases is not reported
> --------------------------------------------------------
>
> Key: SUREFIRE-537
> URL: https://jira.codehaus.org/browse/SUREFIRE-537
> Project: Maven Surefire
> Issue Type: New Feature
> Components: Junit 4.x support, Maven Surefire Report Plugin, xml generation
> Affects Versions: 2.4.3
> Environment: Windows XP, junit 4.4
> Reporter: Rakesh Arora
> Assignee: Kristian Rosenvold
> Fix For: 2.12
>
>
> Tests that are skipped with a @Ignore("Test doesn't work") annotation only appear in the report as an increment in the "Skipped" column. Name of the skipped testcases is also reported. However, the reason (i.e. "Test doesn't work") is not reported.
> Quick look at the source code, it seems that it is not implemented:
> In class: org.apache.maven.plugins.surefire.report.TestSuiteXmlParser
> {code:java} else if ( "skipped".equals( qName ) )
> {
> testCase.addFailure( "skipped", "skipped" ); // TODO extract real reasons
> currentSuite.setNumberOfSkipped( 1 + currentSuite.getNumberOfSkipped() );
> }{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (SUREFIRE-537) Rason for the Ignored/Skipped
testcases is not reported
Posted by "Kristian Rosenvold (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/SUREFIRE-537?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kristian Rosenvold updated SUREFIRE-537:
----------------------------------------
Issue Type: Improvement (was: Bug)
> Rason for the Ignored/Skipped testcases is not reported
> -------------------------------------------------------
>
> Key: SUREFIRE-537
> URL: http://jira.codehaus.org/browse/SUREFIRE-537
> Project: Maven Surefire
> Issue Type: Improvement
> Components: Junit 4.x support, Maven Surefire Report Plugin, xml generation
> Affects Versions: 2.4.3
> Environment: Windows XP, junit 4.4
> Reporter: Rakesh Arora
>
> Tests that are skipped with a @Ignore("Test doesn't work") annotation only appear in the report as an increment in the "Skipped" column. Name of the skipped testcases is also reported. However, the reason (i.e. "Test doesn't work") is not reported.
> Quick look at the source code, it seems that it is not implemented:
> In class: org.apache.maven.plugins.surefire.report.TestSuiteXmlParser
> else if ( "skipped".equals( qName ) )
> {
> testCase.addFailure( "skipped", "skipped" ); // TODO extract real reasons
> currentSuite.setNumberOfSkipped( 1 + currentSuite.getNumberOfSkipped() );
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (SUREFIRE-537) Reason for the Ignored/Skipped testcases is
not reported
Posted by "Harry Soehalim (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/SUREFIRE-537?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=296565#comment-296565 ]
Harry Soehalim commented on SUREFIRE-537:
-----------------------------------------
@Kristian - Thanks, that helps. I missed adding @Test after @Ignore.
> Reason for the Ignored/Skipped testcases is not reported
> --------------------------------------------------------
>
> Key: SUREFIRE-537
> URL: https://jira.codehaus.org/browse/SUREFIRE-537
> Project: Maven Surefire
> Issue Type: New Feature
> Components: Junit 4.x support, Maven Surefire Report Plugin, xml generation
> Affects Versions: 2.4.3
> Environment: Windows XP, junit 4.4
> Reporter: Rakesh Arora
> Assignee: Kristian Rosenvold
> Fix For: 2.12
>
>
> Tests that are skipped with a @Ignore("Test doesn't work") annotation only appear in the report as an increment in the "Skipped" column. Name of the skipped testcases is also reported. However, the reason (i.e. "Test doesn't work") is not reported.
> Quick look at the source code, it seems that it is not implemented:
> In class: org.apache.maven.plugins.surefire.report.TestSuiteXmlParser
> {code:java} else if ( "skipped".equals( qName ) )
> {
> testCase.addFailure( "skipped", "skipped" ); // TODO extract real reasons
> currentSuite.setNumberOfSkipped( 1 + currentSuite.getNumberOfSkipped() );
> }{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira