Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run multiple cucumber runners from maven command line

I've 2 CI flows , which flow needs to run it's own cucumber runner RunnerATest RunnerBTest

I'm using maven command line to run the tests (mvn test)

Is there a way to select a specific Runner from command line ?

Thanks

like image 965
Igal Avatar asked Sep 16 '25 18:09

Igal


1 Answers

Maven Surefire Plugin - Running a Single Test

During development, you may run a single test class repeatedly. To run this through Maven, set the test property to a specific test case.

mvn -Dtest=TestCircle test

So you'd do just that. mvn -Dtest=RunnerATest test.

like image 146
M.P. Korstanje Avatar answered Sep 18 '25 08:09

M.P. Korstanje