grails / grails-core

The Grails Web Application Framework
http://grails.org
Apache License 2.0
2.78k stars 951 forks source link

GRAILS-10586: Upgrade from grails 2.1.x to grails 2.3.0 functional spock tests will not run without spock-grails-support plugin #2733

Closed graemerocher closed 9 years ago

graemerocher commented 10 years ago

Original Reporter: leeroy Environment: Not Specified Version: 2.3 Migrated From: http://jira.grails.org/browse/GRAILS-10586

I am relatively new to grails, so bare with me... After upgrading the application to grails 2.3.0 functional tests will not run without the addition of the spock-grails-plugin (test "org.spockframework:spock-grails-support:0.7-groovy-2.0"). I get no errors, just simply no specs will run without it.

I have removed the :spock:0.7 plugin, but was under the impression there was no other requirement to use spock? Another side effect when including the spock-grails-support, the tests run but the output includes an error output: {noformat} --Output from startline ..... | Error --Output from startline ..... {noformat} Which seems to be noted in, http://jira.grails.org/browse/GRAILS-10550.

Maybe I have completely misunderstood the nature of spock support in 2.3, but currently this appears not to be running as indicated in the docs.

Also please let me know what other supporting information needed to debug this one.

{noformat} dependencies { //Needed to work around Saxon / Xalan issue found in ant-trax 1.7.x build 'org.apache.ant:ant-trax:1.8.0' compile 'org.apache.ant:ant-trax:1.8.0'

    compile 'net.sf.saxon:Saxon-HE:9.5.1-2'
    compile 'com.fasterxml.jackson.core:jackson-annotations:2.2.3'
    compile 'org.codehaus.jackson:jackson-core-asl:1.9.13'
    compile 'org.codehaus.jackson:jackson-mapper-asl:1.9.13'
    compile 'log4j:apache-log4j-extras:1.1' 
    compile 'org.codehaus.groovy.modules.http-builder:http-builder:0.6' //groovyx.net.http package
    compile 'joda-time:joda-time:2.3'

// test "org.gebish:geb-junit4:$gebVersion" // Junit4 testing framework test "org.gebish:geb-spock:$gebVersion" //testing adapters - geb-spock (for Spock Framework, requires the grails-spock plugin) // test "org.spockframework:spock-grails-support:0.7-groovy-2.0" //TODO is this really needed for spock 0.7 plugin? test "org.seleniumhq.selenium:selenium-chrome-driver:$seleniumVersion" test "org.seleniumhq.selenium:selenium-support:$seleniumVersion" test 'org.ccil.cowan.tagsoup:tagsoup:1.2.1' //LatexConverterServiceSpec.groovy }

plugins { // plugins for the build system only build ':tomcat:7.0.42'

  // plugins for the compile step
  compile ':cxf-client:1.5.6' 
  compile ':searchable:0.6.5-SNAPSHOT'

  runtime ':hibernate:3.6.10.1'
  runtime ':compress:0.4'
  runtime ":external-config-reload:1.4.1" 

  test ":geb:$gebVersion"
  test ':browser-detection:0.4.3'

} {noformat}

graemerocher commented 10 years ago

leeroy said: Current Grails Dependency Report

graemerocher commented 10 years ago

leeroy said: This is working fine in with Geb and associated plugins 2.9.2. Please close.

graemerocher commented 10 years ago

graemerocher said: Thanks for confirming