mirweb
02/25/2024, 9:07 PMGroovy Duke
02/25/2024, 9:56 PMtestImplementation("org.junit.jupiter:junit-jupiter:5.10.1")
and removes:
tasks.withType(Test) {
useJUnitPlatform()
systemProperty "geb.env", System.getProperty('geb.env')
systemProperty "geb.build.reportsDir", reporting.file("geb/integrationTest")
systemProperty 'webdriver.chrome.driver', "${System.getenv('CHROMEWEBDRIVER')}/chromedriver"
systemProperty 'webdriver.gecko.driver', "${System.getenv('GECKOWEBDRIVER')}/geckodriver"
}
webdriverBinaries {
chromedriver '110.0.5481.77'
geckodriver '0.32.2'
edgedriver '110.0.1587.57'
}
Grails originally used Junit years ago I think before 2.4 came out give or take. In general, I would use Spock as with Junit you would be pretty much on your own. I think the only reason to still have Junit test would be because you have a large legacy app and you don't want to port all of your tests to Spock.