I'm looking for a plugin that would run in a console continuously to scan a Maven project's test sources directory, and when it detects a change kicks off a test cycle. Something analogous to mvn scala:cc
or the Scala Build Tool, but for Java. Can anyone point me towards one?
Configuring the Maven Surefire Plugin We can run our unit tests by using the Maven Surefire Plugin.
maven-verifier-plugin simply verifies the existence/absence of files on the filesystem. You could use it for functional testing, but you may need more features than maven-verifier-plugin provides.
Maven Surefire plugin helps us to manage our dependencies and select & execute particular test scripts or suites using TestNG.
I have personally used sbt even for a java only project just for continuous test feature.
I added a sbt build file to a maven based project and use sbt when developing, but use maven when building the final package, starting embedded jetty etc and this has worked out quite well.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With