ScalaTest Maven Plugin

Integrates ScalaTest into Maven

License

License

Categories

Categories

Scala Languages Maven Build Tools
GroupId

GroupId

me.jeffshaw.scalatest
ArtifactId

ArtifactId

scalatest-maven-plugin
Last Version

Last Version

2.0.0-M1
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

ScalaTest Maven Plugin
Integrates ScalaTest into Maven
Source Code Management

Source Code Management

https://github.com/scalatest/scalatest-maven-plugin

Download scalatest-maven-plugin

How to add to project

<plugin>
    <groupId>me.jeffshaw.scalatest</groupId>
    <artifactId>scalatest-maven-plugin</artifactId>
    <version>2.0.0-M1</version>
</plugin>

Dependencies

compile (3)

Group / Artifact Type Version
org.apache.maven : maven-plugin-api jar 3.3.9
org.apache.maven : maven-core jar 3.3.9
org.apache.maven.reporting : maven-reporting-api jar 3.0

test (3)

Group / Artifact Type Version
org.scalatest : scalatest_2.11 jar 3.0.1
org.scala-lang : scala-library jar 2.11.7
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

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>scalatest-maven-plugin</artifactId>
  <version>2.0.2</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>
me.jeffshaw.scalatest

ScalaTest

Versions

Version
2.0.0-M1