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

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

    grails test-app -unit com.package.YourController.testSomething
    

    you need to include the package name when you run the test

提交回复
热议问题