<dependency>
<groupId>org.scalatest</groupId>
<artifactId>scalatest_2.11</artifactId>
<version>3.0.5</version>
<scope>test</scope>
</dependency>
groovy
dependencies {
testCompile 'org.scalatest:scalatest_2.11:3.0.5'
}
import org.scalatest.FunSuite;
public class MyLibraryTest extends FunSuite {
test("addition") {
int result = MyLibrary.add(2, 3);
assert(result == 5);
}
}
shell
mvn test
shell
gradle test