我有 2 个 CI 流,哪个流需要运行它自己的 Cucumber Runner 亚军测试 RunnerB测试
我正在使用 maven 命令行来运行测试 (mvn test)
有没有办法从命令行选择特定的 Runner?
谢谢
最佳答案
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
所以你会这样做。 mvn -Dtest=RunnerATest 测试
。
关于maven - 如何从 maven 命令行运行多个 cucumber runner,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55731566/