Skip to content

Instantly share code, notes, and snippets.

@smaldini
Forked from townsfolk/TestAndWar.groovy
Last active December 11, 2015 06:39
Show Gist options
  • Save smaldini/4560790 to your computer and use it in GitHub Desktop.
Save smaldini/4560790 to your computer and use it in GitHub Desktop.
includeTargets << grailsScript("_GrailsInit")
includeTargets << grailsScript("_GrailsTest")
includeTargets << grailsScript("_GrailsWar")
target(main: "Clean, Test, and War") {
clean()
allTests() // results in (1)
//packageApp() not needed
warCreator.configureWarName()
war()
}
setDefaultTarget(main)
/* (1)
619] grails test-and-war
| Environment set to development.....
| Error Error executing script TestAndWar: groovy.lang.MissingMethodException: No signature of method: TestAndWar.testApp() is applicable for argument types: () values: []
Possible solutions: getAt(java.lang.String), asType(java.lang.Class), iterator() (Use --stacktrace to see the full trace)
*/
/* (2)
[620] grails test-and-war
| Compiling 113 source files
| Compiling 8 source files.....
| Error Error executing script TestAndWar: : You must specify the war file to create! (Use --stacktrace to see the full trace)
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment