【问题标题】:How to run test for Grails service如何为 Grails 服务运行测试
【发布时间】:2016-11-03 00:20:24
【问题描述】:

当我跑步时

grails test-app MessageServiceSpec

或 grails test-app mypackage.MessageServiceSpec

我总是出错

No tests found for given includes: [MessageServiceSpec]

这里有什么问题?

更新:运行命令是

grails test-app -unit packageName.MessageServiceSpec

【问题讨论】:

  • MessageServiceSpec 里面有什么?
  • 不管怎样,test-app本身找不到测试文件,因为“-unit”参数没有指定。现在好了。

标签: grails grails-3.0 grails-services


【解决方案1】:

grails test-app -unit mypackage.MessageService

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2013-09-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-06-27
    • 2015-02-19
    • 1970-01-01
    相关资源
    最近更新 更多