Very simple example including an App and a few tests (illustrating different testing styles).
sbt run
sbt test
sbt clean coverage test coverageReport
Now open this file in a web browser:
target/scala-*/scoverage-report/index.html
Note that the Scala version number might vary depending on what's defined in the build configuration (build.sbt
).
This allows you to explore the functionality of the classes in this project in a Scala REPL while letting sbt set the classpath for you.
sbt console