Continuous testing with gradle

Is there a plugin or some good way to make gradle compile and test my application in the background?

I know that there are several plugins for intellij and eclipse (endlessly among others), but I'm looking for a general gradle solution regardless of the IDE.

It would be nice to start testing-deamon and get it to use a growl or some other notification tool to tell me that the code is not compiling or the tests are not working.

+8
testing gradle continuous
source share
1 answer

Continuous compilation / testing / etc. features planned for future versions of Gradle. They will be based on existing Gradle daemons.

Update:

Gradle introduced the continuous build feature in version 2.5. The function is still incubated, but we can already use it in our daily development. The continuous build function means that Gradle will not be completed after the task is completed, but will continue to work and look for changes in the files to automatically start tasks automatically. It is great for scripts when we want to re-run a test task while we write our code. Using the continuous build function, we run Gradle once with a test task, and Gradle will automatically recompile the source files and run the tests if the source file changes.

To use the continuous build function, we must use the command line option --continuous or a shorter version of -t . In this case, the Gradle option will start in continuous mode. To stop Gradle, we must use the keyboard shortcut Ctrl+D

http://mrhaki.blogspot.com.au/2015/08/gradle-goodness-using-continuous-build.html

+6
source share

All Articles