Selecting specific tests to run in gradle

后端 未结 3 2086
野趣味
野趣味 2021-02-13 19:13

I\'m trying to fix our messy failing test runs, and, unfortunately, I\'m very new to gradle. We currently have testng, junit, and I\'d like to add some spock tests to the mix a

3条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-13 20:20

    You may provide using the command line:

    $> gradle test --tests org.somewhere.MyTestClass
    

    Or even

    $> gradle test --tests org.somewhere.MyTestClass.my_test_case
    

提交回复
热议问题