maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Harry Soehalim (JIRA)" <j...@codehaus.org>
Subject [jira] (SUREFIRE-537) Reason for the Ignored/Skipped testcases is not reported
Date Sat, 14 Apr 2012 01:45:03 GMT

    [ 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

        

Mime
View raw message