/scalatest-maven-plugin

ScalaTest Maven Plugin

Primary LanguageJavaApache License 2.0Apache-2.0

ScalaTest Maven Plugin

Building ScalaTest Maven Plugin

Maven 3 is used to manage the build process. To build this plugin, please make sure you have the following installed:-

You then clone and checkout master trunk:-

$ git clone git://github.com/scalatest/scalatest-maven-plugin.git

$ cd scalatest-maven-plugin

Finally use the following commands to build for ScalaTest Maven Plugin:

$ mvn clean package

The built output will be available in target/.

Using ScalaTest Maven Plugin

To use the ScalaTest Maven plugin, you need to disable SureFire and enable ScalaTest. Here's an example of how to do this in your pom.xml:

<!-- disable surefire -- >
<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-surefire-plugin</artifactId>
  <version>2.7</version>
  <configuration>
    <skipTests>true</skipTests>
  </configuration>
</plugin>
<!-- enable scalatest -- >
<plugin>
  <groupId>org.scalatest</groupId>
  <artifactId>maven-scalatest-plugin</artifactId>
  <version>1.0.M2</version>
  <configuration>
    <reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
    <junitxml>.</junitxml>
    <filereports>WDF TestSuite.txt</filereports>
  </configuration>
  <executions>
    <execution>
      <id>test</id>
      <goals>
        <goal>test</goal>
      </goals>
    </execution>
  </executions>
</plugin>