3

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

Igal
  • 4,603
  • 14
  • 41
  • 66

1 Answers1

5

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.

Community
  • 1
  • 1
M.P. Korstanje
  • 10,426
  • 3
  • 36
  • 58