运行 单个集成测试/单个测试 class
Running a single integration test/ single test class
我试图从 grails cli 中 运行 单个测试或单个 class,但无论我尝试了什么,我都无法找出如何做到这一点。你们中有人知道执行此操作的命令是什么吗?
到目前为止我尝试了什么
test-app -integration -Dtest.single=package.ClassSpec
: 仍然是 运行 的所有测试。用通配符替换包不会改变任何东西。
test-app *ClassSpec* -integration
:运行s 10 个可操作任务,不完全确定这些是哪些测试,class 没有 10 个测试。
我正在使用 Grails 3.3.2
./grailsw test-app MyClass
(最后没有规范或测试)
http://docs.grails.org/3.1.1/ref/Command%20Line/test-app.html
我试图从 grails cli 中 运行 单个测试或单个 class,但无论我尝试了什么,我都无法找出如何做到这一点。你们中有人知道执行此操作的命令是什么吗?
到目前为止我尝试了什么
test-app -integration -Dtest.single=package.ClassSpec
: 仍然是 运行 的所有测试。用通配符替换包不会改变任何东西。test-app *ClassSpec* -integration
:运行s 10 个可操作任务,不完全确定这些是哪些测试,class 没有 10 个测试。
我正在使用 Grails 3.3.2
./grailsw test-app MyClass
(最后没有规范或测试)
http://docs.grails.org/3.1.1/ref/Command%20Line/test-app.html