[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.

[GIT] How to ignore directory recursively by .gitignore

For example, In the Mac OS, there is the .DS_Store directory in all directory. So you want ignore the .DS_Store directory from version control.

To ignore directory recursively , use .gitignore like this.

Then the .DS_Store directory which in all directory under working directory will be ignored.

Template for .gitignore is https://github.com/github/gitignore .
It’s useful because they have lots of templates for many environments.

If you already git add, you can restore by

above command.(Do not forget period(.) )

If you already committed, then you can restore by

above command.