I’m trying to run a specific parameterized test method (xyzIT#testTaskRestarts
) from a JUnit 4 test class using the Maven Surefire Plugin, but I’m encountering issues.
With the base command being set to :
mvn -Dcloud -Pjenkins,pr-builder -Dlicense.skip=true -U
-Dmaven.wagon.http.retryHandler.count=10
--batch-mode
--no-transfer-progress clean verify install dependency:analyze validate
I tried all these variations, appending them at the end:
"-Dtest=BlobClobNclob23IT#testLobProcessingSucceedsAfterTaskRestarts"
"-Dtest=xyzIT#testTaskRestarts[*]"
"-Dtest=%regex[.*xyzIT.*#testTaskRestarts.*]"
However, this results in the following warning and the test is not executed:
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
Jun 13, 2024 4:26:54 PM org.junit.vintage.engine.descriptor.RunnerTestDescriptor logIncompleteFiltering
WARNING: Runner org.junit.runners.Parameterized (used on class com.example.integration.end2end.xyzIT) was
not able to satisfy all filter requests.
[INFO]
[INFO] Results:
[INFO]
[INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
Details:
- JUnit Version: 4.13.1 (also using JUnit 5 dependencies)
- Maven Version: 3.6.3
- Surefire Plugin Version: 2.22.1
- Parameterized Test Structure: The test class uses the @RunWith(Parameterized.class) annotation and has multiple test data sets.