Parametrised tests: Run a single invocation via maven #3794
-
Hi all! Question:How to run a single invocation of a parameterised test via maven? i can re-run a single invocation of a parameterised test in IDEA in accord with #1025, but i can not do that via maven, for example with uniqueId. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
My question relates to Junit 5 (version 5.10.1) As i see, Junit4/Juni4.7+ provide possibility to run single invocation test in accord with https://maven.apache.org/surefire/maven-surefire-plugin/examples/single-test.html
but it does not work on Junit 5 |
Beta Was this translation helpful? Give feedback.
-
JUnit Platform does provide the means to implement this via |
Beta Was this translation helpful? Give feedback.
JUnit Platform does provide the means to implement this via
IterationSelector
. Parsing expressions like#testMethod[5:*]
is a feature of Maven Surefire that's probably not implemented for JUnit 5, yet. I'd recommend raising an issue with the Maven Surefire project.