if (Environment.current == Environment.TEST)
I am trying to upgrade Grails 2.4 to 3.3.6 and not able to change environments: from Development to test, Can someone help me?
You can pass the environment when your start the application.
grails -Dgrails.env=TEST run-app
Check this