I want to use code coverage in Scala project,Simple Build Tool used as a build tool.What is the best one to use in this project. (I'm new to these technologies.) Any one can tell me how to configure code coverage in my project.If you could provide an example that will help me lot to understand the things.
Asked
Active
Viewed 2,386 times
1 Answers
3
I'm trying to figure out the same thing right now :-)
I've found the sbt-undercover-plugin, which uses Undercover to generate a pretty nice looking HTML report for code coverage. I worked really well the first time I used it, but this morning my reports all show 0% coverage, so YMMV.
I'll update as I find other options.
Edit:
The Scala Code Coverage Tool looks a bit more robust. It at least provides its own Maven repo, so you don't have to deploy locally to your build machines.

leedm777
- 23,444
- 10
- 58
- 87
-
-
I'm having good luck with Scala Code Coverage Tool. It seems to have fewer snags that sbt-undercover-plugin. – leedm777 Dec 30 '10 at 07:21
-
scct plugin does not work for me. It report enormously high coverage. It does not show untested code but it generates perfect reports fr a manager. – Andrey Jun 28 '13 at 22:37
-
did anyone figure out yet how to use sbt-scct plugin on SBT multiproject setup? For some reason my Build.scala can't find ScctPlugin object. It seems that it should be in default package and import ScctPlugin does not work. I followed instructions on their home page. Any help would be appreciated. – yǝsʞǝla Aug 01 '13 at 16:59