Entries Tagged as 'Grails'

'Agile' Integration Tests on Grails

Over the weekend I finally scrounged some mental space to write a small application to manage bookings for my badminton club. After debating between Ruby on Rails (RoR) and Grails, I decided on Grails.

As you might know Grails has very nice and expressive way of modeling the domain classes -- arguably more elegant than RoR. And also that writing integration tests to experiment with the CRUD functionality makes writing a robust and testable model very simple.

So I wrote a bunch of integration tests as I was designing the domain classes. However, running the tests using grails test-app was proving to be very slow, and I mean really slow -- 11 seconds to run tests on two domain classes.

Usingᅠgrails test-appᅠruns both unit and integration test. The actual time taken to run both the unit and integration tests wasn't that much. It was the overall task of setting up the test environment that seemed to be taking a while.

Read more...