GithubHelp home page GithubHelp logo

sephlietz / scalatest-maven-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from scalatest/scalatest-maven-plugin

0.0 1.0 0.0 116 KB

ScalaTest Maven Plugin

License: Apache License 2.0

Java 67.16% Scala 26.26% Groovy 5.53% HTML 1.05%

scalatest-maven-plugin's Introduction

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.2.0</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>

Ignore When ScalaTest Not Available

This plugin expects the you to include ScalaTest dependency used by the your project. By default, if you do not include a ScalaTest dependency, this plugin will fail the build, if you would like to ignore or skip running this plugin when ScalaTest is not in the classpath, you can set noScalaTestIgnore to true in configuration like this:

...
<configuration>
  <noScalaTestIgnore>true</noScalaTestIgnore>
</configuration>
...

Deploying to Sonatype

Add the following into settings.xml (please replace username and password):

<servers>
  <server>
    <id>sonatype-nexus-staging</id>
    <username>xxx</username>
    <password>yyy</password>
  </server>
</servers>

Then run the following command:

> mvn clean deploy -Prelease -Dmaven.test.skip=true

scalatest-maven-plugin's People

Contributors

cheeseng avatar bvenners avatar gcberger avatar cstroe avatar isomarcte avatar andreoss avatar metteo avatar katrinsharp avatar cerveada avatar gliptak avatar seanf avatar sdruzkin avatar veysiertekin avatar chrisalbright avatar jakobbraun avatar grigorievnick avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.