0

I just migrated an application from grails 2.2.4 to grails 2.5.1. Now spock tests are not executed. The test directory looks as following:

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

Following behavior occurs:

grails test-app unit:spock

does not run any test

grails test-app unit:

runs all spock unit tests

grails test-app functional:spock

does not run any tests

grails test-app functional:

runs only JUnit functional tests

With grails 2.2.4 all test have been executed. I followed the migration guide provided at the grails homepage (removing spock-plugin etc.) Does anyone have an idea what the problem may be?

4

1 回答 1

1

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

我不知道为什么默认情况下不提供此功能。

问候,伦佩尔

于 2015-09-09T11:31:19.023 回答