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

后端 未结 5 1675
借酒劲吻你
借酒劲吻你 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:28

    yes there is

    grails test-app -unit YourController.testSomething
    

    where YourController is your controller and testSomething is the test method.

    You should see something like

    Tests PASSED - view reports in

提交回复
热议问题