Grails: About build/runtime/compile in BuildConfig.groovy

  • build
  • Required only when build.

  • runtime
  • Required when running the application, but dose not required to compiling. Example JDBC implimentation.

  • compile
  • Required when running the application and compiling. Usually this.

[Grails] Speed up Integration test (Debug mode available)

  1. Start up interactive mode in debug-mode
  2. Connect from IDE
  3. Connect remote from InteliJ
    From menu Run -> Edit Configuration ->
    then click + mark and select Remote

  4. Start test

Run application in remote debug

Do run-app instead of test-app. It faster and stable(may be).

Without debug

Run interactive mode.

then run test.

It may be faster than run from IDE.