heroku/heroku-buildpack-grails — pull request #6 by rbrainard (2012-01-10 00:09:55+00:00)
Title: Grails Buildpack Unit Tests

This is a basic set of unit tests for the Grails buildpack. Because Grails is a more complex framework in the way apps must be constructed to be compiled, I use Grails to setup the tests with real apps instead of mocking up fake apps. This does have a time penalty, but I cache the Grails runtime and a pristine test app for each version in /tmp for faster test runs, which makes it bareable. If I can figure out a better way to mock a Grails app, maybe some of this can be replaced.

Contains tests for:
- 1.3.7
- 2.0.0
- upgrades between Grails versions
- invalid versions
- jetty-runner installation (and lack thereof)
- build failures
- grails caching

Minor fixes to buildpack compile script:
- Removal of extraneous GRAILS_URL var
- Extraction of jetty-runner version number