Can I run a single unit test from the command line for a Grails project?

后端 未结 5 1732
借酒劲吻你
借酒劲吻你 2021-02-01 15:01

I\'ve been running my Grails unit tests by typing grails test-app :unit, which runs all unit tests. Is there a way to specify a single test?

Edit:<

5条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-01 15:21

    This would work for sure, I use it every day

    Following will run a single test

    grails test-app :unit ExampleControllerTests.testName
    

    Following will run all ExampleControllerTests

    grails test-app :unit ExampleControllerTests
    

提交回复
热议问题