maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Gaul (JIRA)" <j...@codehaus.org>
Subject [jira] (SUREFIRE-1028) Unable to run single test (junit)
Date Fri, 15 Nov 2013 17:28:20 GMT

    [ https://jira.codehaus.org/browse/SUREFIRE-1028?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=335726#comment-335726
] 

Andrew Gaul edited comment on SUREFIRE-1028 at 11/15/13 11:27 AM:
------------------------------------------------------------------

I can trigger these symptoms when setting parallel=classes, similar to http://jira.codehaus.org/browse/SUREFIRE-827#comment-290928

{noformat}
$ mvn test -Dtest=ImmutablePairTest#testBasic -Dparallel=none -Dsurefire.version=2.15
...
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0

$ mvn test -Dtest=ImmutablePairTest#testBasic -Dparallel=none -Dsurefire.version=2.16
...
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0

$ mvn test -Dtest=ImmutablePairTest#testBasic -Dparallel=classes -DthreadCount=1 -Dsurefire.version=2.15
...
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0

$ mvn test -Dtest=ImmutablePairTest#testBasic -Dparallel=classes -DthreadCount=1 -Dsurefire.version=2.16

main:
[debug] execute contextualize
[debug] execute contextualize

-------------------------------------------------------
 T E S T S
-------------------------------------------------------

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.16:test (default-test)
on project commons-lang3: No tests were executed!  (Set 
-DfailIfNoTests=false to ignore this error.) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following
articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
{noformat}
                
      was (Author: gaul):
    I can trigger these symptoms when setting parallel=classes, similar to http://jira.codehaus.org/browse/SUREFIRE-827?focusedCommentId=290928&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-290928

{noformat}
$ mvn test -Dtest=ImmutablePairTest#testBasic -Dparallel=none -Dsurefire.version=2.15
...
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0

$ mvn test -Dtest=ImmutablePairTest#testBasic -Dparallel=none -Dsurefire.version=2.16
...
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0

$ mvn test -Dtest=ImmutablePairTest#testBasic -Dparallel=classes -DthreadCount=1 -Dsurefire.version=2.15
...
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0

$ mvn test -Dtest=ImmutablePairTest#testBasic -Dparallel=classes -DthreadCount=1 -Dsurefire.version=2.16

main:
[debug] execute contextualize
[debug] execute contextualize

-------------------------------------------------------
 T E S T S
-------------------------------------------------------

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.16:test (default-test)
on project commons-lang3: No tests were executed!  (Set 
-DfailIfNoTests=false to ignore this error.) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following
articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
{noformat}
                  
> Unable to run single test (junit)
> ---------------------------------
>
>                 Key: SUREFIRE-1028
>                 URL: https://jira.codehaus.org/browse/SUREFIRE-1028
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Maven Surefire Plugin
>    Affects Versions: 2.16
>            Reporter: Diwaker Gupta
>            Priority: Critical
>             Fix For: 2.17
>
>
> This is a regression from 2.15. It also looks like Surefire keeps regressing on this
feature (e.g. see SUREFIRE-827) -- are there no unit or integration tests to prevent such
regressions?
> With Surefire 2.15
> {noformat}
> $ mvn test -Dtest=MyTest#testFoo
> ...
> Results :
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
> {noformat}
> With Surefire 2.16
> {noformat}
> $ mvn test -Dtest=MyTest#testFoo
> Results :
> Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
> {noformat}

--
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

Mime
View raw message