limansky / scala-test-it   0.1.0

Apache License 2.0 GitHub

ScalaTest TestIt integration

Scala versions: 3.x 2.13 2.12
sbt plugins: 2.0.0-M4 1.x

scala-test-it

Build Status

ScalaTest and TestIt integration.

The simplest way to use this is via sbt plugin. Both sbt 1.x and upcoming 2.x are supported.

addSbtPlugin("me.limansky" % "sbt-test-it" % "(version)")

The plugin should be enabled manually:

lazy val myProject = (project in file ("."))
  .enablePlugins(TestItPlugin)

TestItPlugin set the reporter dependency for you, and pass the reporter as a parameter to ScalaTest. It has one setting testItEnabled (true by default) determine if the test run must be published to Test IT.

Test IT settings can be passed via testit.properties file in the resources, or via environment variables. You can also mix both approaches, for example, if you don't want to store private keys in the repository.