dimanche 24 mars 2019

How to run a specific unit test of a specific Test class of a specific Test Suite with Maven (JUnit 4)

I'd like to run a specific test routine called T20 which is in the class UploadTest which is part of the test suite "TestSuite" (Junit4). There is a @BeforeClass in my test suite that I need to run before running T20.

Is it possible to do this with maven and Junit 4 ? If not, is there any other test framework that allows it ?

I tried :

mvn test -DtestSuite=TestSuite -Dtest=UploadTest#T20 

but it did not work.

Thanks and regards.

Aucun commentaire:

Enregistrer un commentaire