NOTE: this plugin is currently being intregrated into ScalaTest
You can track the progress at Sean Griffins repository
Use Seans fork and not this one!
maven-scalatest-plugin is a Maven plugin that integrates ScalaTest functionality into Maven.
maven-scalatest-plugin is not available from the standard Maven repositories. To install it,
you should checkout the code from github and install it: the “install” target will add the
plugin to your local Maven repository.
git clone http://github.com/teigen/maven-scalatest-plugin.git cd maven-scalatest-plugin && mvn clean install
Add the following to your project’s pom.xml file.
<project> ... <build> <!-- To define the plugin version in your parent POM --> <pluginManagement> <plugins> <plugin> <groupId>com.jteigen</groupId> <artifactId>maven-scalatest-plugin</artifactId> <version>1.1-SNAPSHOT</version> </plugin> ... </plugins> </pluginManagement> <!-- To use the plugin goals in your POM or parent POM --> <plugins> <plugin> <groupId>com.jteigen</groupId> <artifactId>maven-scalatest-plugin</artifactId> <version>1.1-SNAPSHOT</version> </plugin> ... </plugins> </build> ... </project>
To run your scalatests (in your project)
mvn scalatest:test
To start the scalatest gui (in your project)
mvn scalatest:gui
If you want to run a particular suite of tests (in your project):
mvn scalatest:test -Dsuite=mypack.MySuit
To generate the configuration documentation, please run
mvn site:siteopen target/site/plugin-info.html