Skip to content

janhicken/surefire-scalatest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

surefire-scalatest

A Maven Surefire Provider for ScalaTest.

Usage

Just add a dependency to your Surefire plugin configuration and set the <includes> according to your test class names:

<plugin>
    <artifactId>maven-surefire-plugin</artifactId>
    <version>2.22.2</version>
    <configuration>
        <includes>
            <include>**/*Test.*</include>
            <include>**/*Spec.*</include>
        </includes>
    </configuration>
    <dependencies>
        <dependency>
            <groupId>io.github.janhicken</groupId>
            <artifactId>surefire-scalatest</artifactId>
            <version>0.2</version>
        </dependency>
    </dependencies>
</plugin>

In the test phase, your ScalaTest specs will be executed using Surefire now.

Configuration

As already displayed above, all discovery parameters, such as <includes> and <excludes> are working.

Furthermore, you may configure a parallel execution of test suites by setting parallel=suites and configuring a thread count.

Apart from this, no further configuration has been tested. Your desired configuration parameter may just work out-of-the-box.

About

A Maven Surefire Provider for ScalaTest

Resources

License

Stars

Watchers

Forks

Packages

No packages published