Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a Java continuous testing plugin for Maven?

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?

like image 328
Jakub Korab Avatar asked Jul 05 '12 15:07

Jakub Korab


People also ask

Which Maven plugin can be used to run tests?

Configuring the Maven Surefire Plugin We can run our unit tests by using the Maven Surefire Plugin.

Can maven be used for testing?

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.

Which plugin helps execute test cases from test directory in Maven project?

Maven Surefire plugin helps us to manage our dependencies and select & execute particular test scripts or suites using TestNG.


1 Answers

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.

like image 100
Biju Kunjummen Avatar answered Sep 29 '22 17:09

Biju Kunjummen