Wednesday 8 April 2009

Grails Unit and Integration Tests

I was unexpectedly free today and decided to add some tests to the competition project. Initially I thought some nice simple domain class tests would be good. After whipping some up, I ran grails test-app and produced my test report.
However it seems that integration tests take precedence over unit tests as I get clear results even though my unit tests fail:

This would seem to be pretty poor form. I would have hoped to see failures for all tests unit and integration. If anyone has struck this problem before let me know...

Update:After reading the doc's at grails.org I've found that running the tests using grails test-app -unit solves my problem.

No comments: