Home Grails war and include tests
Reply: 2

Grails war and include tests

ap.singh Published in 2018-01-11 19:42:33Z

I am looking for a way to run tests on war command of grails. War should not be created if test fails. I have searched a lot but did not find anything, Anyone has experience with this?

Dónal Reply to 2018-01-11 22:22:50Z

Run this on the command line

grails test-app && grails war

The second command won't execute if the first command fails

Evgeny Smirnov
Evgeny Smirnov Reply to 2018-01-12 10:39:54Z

Add this to your build.gradle:

war.dependsOn test
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.321787 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO