From d1c6c7d8a8f7fd978f3aad485c980b298e2029bc Mon Sep 17 00:00:00 2001 From: wololock Date: Mon, 4 Aug 2014 20:34:10 +0200 Subject: [PATCH 1/2] changing integration spec template to create class that extends IntegrationSpec class --- .../src/grails/templates/testing/Integration.groovy | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/grails-resources/src/grails/templates/testing/Integration.groovy b/grails-resources/src/grails/templates/testing/Integration.groovy index e699e21f2af..0eb6b7af28c 100644 --- a/grails-resources/src/grails/templates/testing/Integration.groovy +++ b/grails-resources/src/grails/templates/testing/Integration.groovy @@ -1,11 +1,6 @@ -@artifact.package@ +@artifact.package@import grails.test.spock.IntegrationSpec -import spock.lang.* - -/** - * - */ -class @artifact.name@ extends Specification { +class @artifact.name@ extends IntegrationSpec { def setup() { } From 2dc66a6c4df09f93552a5a818f6360f9a48178ea Mon Sep 17 00:00:00 2001 From: wololock Date: Mon, 4 Aug 2014 20:35:13 +0200 Subject: [PATCH 2/2] changing integration test filename pattern to *IntegrationSpec (it wont collide with creating unit test for the same class) --- grails-scripts/src/main/scripts/CreateIntegrationTest.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grails-scripts/src/main/scripts/CreateIntegrationTest.groovy b/grails-scripts/src/main/scripts/CreateIntegrationTest.groovy index a47f1964448..919cde6fed3 100755 --- a/grails-scripts/src/main/scripts/CreateIntegrationTest.groovy +++ b/grails-scripts/src/main/scripts/CreateIntegrationTest.groovy @@ -32,7 +32,7 @@ target ('default': "Creates a new Grails integration test which loads the whole for (name in argsMap["params"]) { name = purgeRedundantArtifactSuffix(name, 'Spec') - createIntegrationTest(name: name, suffix: "", testType:"Integration") + createIntegrationTest(name: name, suffix: "Integration", testType:"Integration") } }