I would like to execute some additional script steps after each test run. So basically, I would like to create a new script in grails which
- first calls the standard
test-app functional:webtest -baseUrl=http://example.com
- afterwards runs some kind of clean-up script
Now I wonder about how to call the test-app
script from within my script...
The common way to do that is shown in this example:
The line
grailsScript("_GrailsInit")
does the trick and inlcudes the targets of the grails scripts into the own.You can have a look at this http://grails.org/doc/latest/guide/commandLine.html#creatingGantScripts