Another WebTest plugin release, this time with some new functionality!
Soenke Sothmann has contributed a nice patch to allow you to run custom suites of tests:
run-webtest -suite=MyTestSuite
Note that under windows you will need to quote the -suite argument due to an issue with Gant's argument parsing e.g. "-suite=MyTestSuite"
import grails.util.WebTest class MyTestSuite extends WebTest { static void main(args) { new MyTestSuite().runTests(args) } void suite() { new SomeTest1(ant:ant).suite() new SomeTest2(ant:ant).suite() // You could also load up certain tests based on naming conventions or annotations } }
In addition to this patch, there were some bug fixes relating to running webtests under Hudson and also around setting a custom port when starting up the server.
No comments:
Post a Comment