【问题标题】:grails 2.5.1 ignores Spock functional testsgrails 2.5.1 忽略 Spock 功能测试
【发布时间】:2015-09-08 14:28:56
【问题描述】:

我刚刚将一个应用程序从 grails 2.2.4 迁移到 grails 2.5.1。现在不执行 spock 测试。测试目录如下:

test
   - unit
      - FirstSpec
      - SecondSpec
      - ... (more Spock tests)  
   - functional
      - FirstTests
      - FirstSpec
      - ... (more JUnit & Spock tests)

出现以下行为:

grails test-app unit:spock

不运行任何测试

grails test-app unit:

运行所有 spock 单元测试

grails test-app functional:spock

不运行任何测试

grails test-app functional:

只运行 JUnit 功能测试

在 grails 2.2.4 中,所有测试都已执行。我遵循 grails 主页上提供的迁移指南(删除 spock-plugin 等) 有谁知道问题可能是什么?

【问题讨论】:

    标签: grails testing spock grails-2.5


    【解决方案1】:

    我遇到了同样的问题。这个插件增加了对功能 spock 测试的支持:https://grails.org/plugin/functional-spock

    不知道为什么默认不提供这个功能。

    问候,伦佩尔

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-03-11
      • 1970-01-01
      • 2012-05-06
      • 1970-01-01
      • 2015-09-01
      相关资源
      最近更新 更多