[
https://issues.apache.org/jira/browse/SUREFIRE-1372?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16026799#comment-16026799
]
ASF GitHub Bot commented on SUREFIRE-1372:
------------------------------------------
GitHub user mpkorstanje opened a pull request:
https://github.com/apache/maven-surefire/pull/150
SUREFIRE-1372 Filter tests to be rerun by description
Filtering tests by the tuple of (Class, Method) does not work when a test
suite is used as a suite may not have (Class, Method) . Filtering by the
description of the failed test should however work.
Related Issues:
- https://github.com/cucumber/cucumber-jvm/issues/1120
- https://github.com/temyers/cucumber-jvm-parallel-plugin/issues/31
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/mpkorstanje/maven-surefire SUREFIRE-1372
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/maven-surefire/pull/150.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #150
----
commit 0ede21cb929df8004f065db82304061e0e0929d5
Author: mpkorstanje <[email protected]>
Date: 2017-05-10T21:59:31Z
SUREFIRE-1372 Filter tests to be rerun by description
Filtering tests by the tuple of (Class, Method) does not work when a test
suite is used as a suite may not have (Class, Method) . Filtering by the
description of the failed test should however work.
Related Issues:
- https://github.com/cucumber/cucumber-jvm/issues/1120
- https://github.com/temyers/cucumber-jvm-parallel-plugin/issues/31
----
> Rerunning failing tests fails in combination with
> Description#createSuiteDescription
> ------------------------------------------------------------------------------------
>
> Key: SUREFIRE-1372
> URL: https://issues.apache.org/jira/browse/SUREFIRE-1372
> Project: Maven Surefire
> Issue Type: Bug
> Components: Maven Surefire Plugin
> Affects Versions: 2.20
> Reporter: M.P. Korstanje
> Assignee: Tibor Digana
>
> When using surefire to rerun failing tests created by a Runner that uses
> {noformat}Description#createSuiteDescription{noformat} with a human readable
> name rather then a class name the following stack trace occurs:
> {code}
> org.apache.maven.surefire.testset.TestSetFailedException: Unable to create
> test class 'Scenario: Fail when running'
> at
> org.apache.maven.surefire.junit4.JUnit4Provider.executeFailedMethod(JUnit4Provider.java:385)
> at
> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:292)
> at
> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
> at
> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:161)
> Caused by: java.lang.ClassNotFoundException: Scenario: Fail when running
> at
> org.apache.maven.surefire.junit4.JUnit4Provider.executeFailedMethod(JUnit4Provider.java:379)
> at
> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:292)
> at
> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
> at
> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:161)
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)