Skip to content

A plugin to enable the use of scalatest in a gradle Scala project.

License

Notifications You must be signed in to change notification settings

mohnishkodnani/gradle-scalatest

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gradle-scct

A plugin to enable the use of scalatest in a gradle Scala project.

Getting started

buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath 'com.github.maiflai:gradle-scalatest:0.4'
    }
}

apply plugin: 'scalatest'

dependencies {
    compile 'org.scala-lang:scala-library:2.10.1'
    testCompile 'org.scalatest:scalatest_2.10:2.0'
    testRuntime 'org.pegdown:pegdown:1.1.0'
}

This replaces the existing test task actions with a scalatest implementation.


Note that the default behaviour is to use as many parallel threads as you have available processors.

Test tasks are modified at the time that you apply the plugin (as otherwise they would default to single-threaded).

To disable this, you should configure your test tasks accordingly.

test {
    maxParallelForks = 1
}

Note that the minimum supported ScalaTest version is now '2.0' in order to support collection of parallel test output

About

A plugin to enable the use of scalatest in a gradle Scala project.

Resources

License

Stars

Watchers

Forks

Packages

No packages published