scala
libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.9" % Test
<dependency>
<groupId>org.scalatest</groupId>
<artifactId>scalatest_2.13</artifactId>
<version>3.2.9</version>
<scope>test</scope>
</dependency>
groovy
pipeline {
agent any
stages {
stage('Build') {
steps {
sh 'sbt clean package'
}
}
stage('Test') {
steps {
sh 'sbt test'
}
}
}
}
scala
import org.scalatest._
class MyTests extends FlatSpec with Matchers with BeforeAndAfterAll {
override def beforeAll(): Unit = {
}
"MyTests" should "pass" in {
}
}