Skip to content

Latest commit

 

History

History

test

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

org.hammerlab.sbt:test

org.hammerlab.sbt:test

Add ScalaTest or utest to a project, and other useful testing controls

addSbtPlugin("org.hammerlab.sbt" % "test" % "5.0.0")

Declare a project (or build) to use ScalaTest:

scalatest
  • adds a test-dep on ScalaTest
  • sets ScalaTest as the only TestFramework
  • configures full stack-trace display

utest similarly adds the corresponding test-dep and framework.

Both support version helpers:

scalatest.version := "3.0.5"
utest.version := "0.6.6"

Other test-configurations are available (source):

  • Configure adding a -tests artifact to Maven-Central publishing:

    publishTestJar
  • Clear all TestFrameworks

    testing.framework := None
  • Disable testing altogether:

    testing.disable