1.) Create the test under test/unit/{package}/{class under test}
2.) Make sure the test class extends GroovyTestCase (a built in base class in Groovy)
3.) Also, make sure that the file name matches the class name (unlike Java, Groovy classes don't have to match the file name).
Once you have those requirements then you can run your tests just like any other Grails context aware classes.
No comments:
Post a Comment