Closed enaud1984 closed 4 years ago
It seems you're not using Maven in a standard setup.
Please read how to run normal unit test via Surefire and integration test via Failsafe -- and in case you want to run test for a jarred Maven extension, there's for example the Maven Invoker Plugin.
This issue tracker is not the place for questions. If you want to ask how to do something, or to understand why something isn't working the way you expect it to, please use Gitter [1] or Stack Overflow [2].
[1] https://gitter.im/junit-team/junit5 [2] https://stackoverflow.com/questions/tagged/junit5
Hi all, I am trying to run tests that are in a jar file (sr/java/main/test/jarfile.jar directory ). The launcher does not find any test. From intellij, in source of project when i runTesT is all ok, so no problem in actual tests. TestProject:
pom.xml is this:
If i run smartRoadRegistryTest method it work well.
Now i have create a new project TestSuiteLoader where i load jar inspect class and method with @Test and after i run a method called.
My function is this:
In console i read:
c.runOne("TestSuite.jar","SmartRoadApiTest.ConfigurationControllerTest","smartRoadRegistryTest", new SummaryGeneratingListener());
Test run finished after 63 ms [ 1 containers found ] [ 0 containers skipped ] [ 1 containers started ] [ 0 containers aborted ] [ 1 containers successful ] [ 0 containers failed ] [ 0 tests found ] [ 0 tests skipped ] [ 0 tests started ] [ 0 tests aborted ] [ 0 tests successful ] [ 0 tests failed ]
0 Test Found!!
my pom.xml is:
Thanks Regards Giuseppe