
Starting with the next release (or if you care to download a copy from the current HEAD) you'll see two familiar scripts if you're coming from Grails: create-unit-test and test-app. The first script, as the name suggests, will let you create an arbitrary unit test (remember that whenever you create a controller or an mvc group you will have an automatically created integration test for that controller as well) for any piece of your Griffon app. The second script will let you run all unit and integration tests, closing the circle as you previously couldn't run any tests at all.
It is worth mentioning that when it comes to UI testing or functional testing the regular facilities provided by JUnit or TestNG are not enough, that is why we are working hard to get the plugin architecture in place, thus allowing testing of Griffon applications with FEST and/or Easyb, stay tuned for more updates on that front.
One last thing to mention (and a very cool one), Griffon has also borrowed from Grails a very useful script written by awesome @glen_a_smith: stats. This little script will inspect your code and output a listing of LoC (lines of code) of all your application files grouped by stereotype, here is a sample from Greet
+----------------------+-------+-------+ | Name | Files | LOC | +----------------------+-------+-------+ | Controllers | 1 | 185 | | Models | 1 | 14 | | Views | 2 | 216 | | Services | 1 | 197 | | Lifecycle | 5 | 88 | | Java Source | 2 | 85 | +----------------------+-------+-------+ | Totals | 12 | 785 | +----------------------+-------+-------+
Keep on Grooving! and don't forget to take Griffon for a spin, we'd love to receive your feedback
