You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by GitBox <gi...@apache.org> on 2019/11/01 12:53:28 UTC

[GitHub] [maven-surefire] marcphilipp commented on issue #245: Surefire-1584: Add option to rerun failing tests for JUnit5

marcphilipp commented on issue #245: Surefire-1584: Add option to rerun failing tests for JUnit5 
URL: https://github.com/apache/maven-surefire/pull/245#issuecomment-548777170
 
 
   @Tibor17 Your `MethodSelector` is missing the method's parameter types, i.e. there's no `test()` method, only a `test(java.lang.String)` one.
   
   For this use case, I'd recommend using a `UniqueIdSelector`, though. To rerun only the first invocation of the method that would be `DiscoverySelectors.selectUniqueId("[engine:junit-jupiter]/[class:pkg.ParamTest]/[test-template:test(java.lang.String)]/[test-template-invocation:#1]")`. To rerun _all_ invocations, it would be `DiscoverySelectors.selectUniqueId("[engine:junit-jupiter]/[class:pkg.ParamTest]/[test-template:test(java.lang.String)]")` which is equivalent to `DiscoverySelectors.selectMethod("pkg.ParamTest.test(java.lang.String)")`.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services