How to speed up grails test execution

前端 未结 7 1401
孤独总比滥情好
孤独总比滥情好 2020-12-12 21:31

While developing a Grails 1.0.5 app I\'m appalled at how slow the grails test-app command is. Even though the actual tests take just ~10 seconds, the whole exec

7条回答
  •  庸人自扰
    2020-12-12 22:17

    You can use interactive mode to speed up your test runs.

    Just run

    grails interactive
    

    Then type

    test-app
    

    The first time will be the same as usual but each time after that will be dramatically faster. There are currently some issues with interactive mode (like running out of memory after a few runs) but I still find it worth it.

提交回复
热议问题