Scala, sbt and emma or Cobertura

I want to use code coverage in a Scala project, the Simple Build Tool used as a build tool. Which one is best used in this project. (I'm new to these technologies.) Anyone can tell me how to set up code coverage in my project. If you could give an example that will help me sort things out.

+5
source share
1 answer

I'm trying to understand the same thing right now :-)

I found an sbt-undercover-plugin that uses Undercover to create a pretty nice HTML report to cover the code. I did a great job the first time I used it, but this morning my reports show 0% coverage, so YMMV.

I will update when I find other options.

Edit:

Scala The code coverage tool looks a little more robust. It at least provides its own Maven repo, so you don't need to deploy builds locally on your machines.

+3
source

All Articles