I am trying to insert some test data into my database for which the BootStrapTest class works.
In my BootStrap.groovy file it was named like this
environments { test { println "Test environment" println "Executing BootStrapTest" new BootStrapTest().init() println "Finished BootStrapTest" } }
However, when I run my integration tests, this code does not execute. I read that integration tests should load, so I'm pretty confused.
I saw some invasive solutions, such as modifying the TestApp.groovy script , but I would suggest that there is a way through conf for this. Also read this SO question and this one as well , but he did not quite understand.
Maybe I'm misunderstanding something, I have a lot of problems with testing Grails. If it brings something to the table, im uses Intelli JIdea as the IDE.
Any thoughts would be appreciated.
Thank you in advance
Tom source share