[
https://issues.apache.org/jira/browse/SUREFIRE-1584?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16651372#comment-16651372
]
Tibor Digana edited comment on SUREFIRE-1584 at 10/16/18 9:19 AM:
------------------------------------------------------------------
[~tictac.freshmint]
[[email protected]]
Yes, this can be done in JUnit5 level, but we should not forget feature
{{skipAfterFailureCount}} which is connected to this feature
{{rerunFailingTestsCount}}.
We have to do {{skipAfterFailureCount}} on Surefire level and not on JUnit5
level because the JVM forks the suite in parallel and this feature in JUnit4
already is concurrent across multiple JVMs. In JUnit4 providers we are calling
{{pleaseStop()}} on {{RunNotifier}}. If it was similar method in JUnit5 as
well, we could just copy-paste the existing code from existing providers.
was (Author: tibor17):
[~tictac.freshmint]
[[email protected]]
We have to do it on Surefire level and not on JUnit5 level because the JVM
forks the suite in parallel and this feature in JUnit4 already is concurrent
across multiple JVMs. In JUnit4 providers we are calling {{pleaseStop()}} on
{{RunNotifier}}. If it was similar method in JUnit5 as well, we could just
copy-paste the existing code from existing providers.
> Rerun Failing Tests with JUnit 5
> --------------------------------
>
> Key: SUREFIRE-1584
> URL: https://issues.apache.org/jira/browse/SUREFIRE-1584
> Project: Maven Surefire
> Issue Type: New Feature
> Components: JUnit 5.x support, Maven Surefire Report Plugin
> Affects Versions: 2.22.0
> Reporter: Tic Tac
> Priority: Major
> Labels: junit5
>
> The very useful feature for integration tests ¨[Rerun Failing
> Tests|https://maven.apache.org/surefire/maven-surefire-plugin/examples/rerun-failing-tests.html]¨
> is currently only supported for the very outdated JUnit 4.
> The documentation says: ¨This feature is supported only for JUnit 4.x.¨
> Can you please support this feature for JUnit 5.3 or later?
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)