I want to follow TDD, but the command grails test-app CUT needs almost a minute to run due to Resolving dependencies... and Resolving new plugins. Please wait... ...
Each of those two stages takes about 20 seconds to complete while the tests only take up some seconds.
(I am unsure if this has any effect on the performance, but I am using dependency resolution via BuildConfig.groovy – and want to stick with it.)
- How can I have grails only execute the tests any maybe skip the process of resolving?
- How else could I speed up the process? (Note that
grails interactiveis unable to influence the speed of resolving.)
In Grails 2 there’s a new variant of the old (now deprecated) ‘interactive’ command. In order to start it, one must start grails without any arguments (i.e.
grails <ENTER>).Running
test-appfrom there seems to skip dependecy resolution which ultimately makes tests run much faster now (~40 seconds less in the case mentioned).