Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Maven support for ScalaTest

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 src
Octocat-spinner-32 README.textile
Octocat-spinner-32 pom.xml
README.textile

A Maven Plugin for Scalatest

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!

Overview

maven-scalatest-plugin is a Maven plugin that integrates ScalaTest functionality into Maven.

Building and Installing

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	

Usage

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

Configuration

To generate the configuration documentation, please run


mvn site:site

open target/site/plugin-info.html

Something went wrong with that request. Please try again.