Igal
Igal

Reputation: 4783

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

Upvotes: 4

Views: 2053

Answers (1)

M.P. Korstanje
M.P. Korstanje

Reputation: 12049

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.

Upvotes: 6

Related Questions