Code Coverage Tools for Scala [closed]
What are the available code coverage tools for Scala?
I have Scala spec tests and a Hudson continuous integration set-up. Is there something I can hook-in to this setup to measure and track code coverage?
Solution 1:
SCCT is a compiler plugin which instruments the classes to gather coverage data:
http://mtkopone.github.com/scct/
Solution 2:
I use Cobertura. However, any Java coverage tool should work just fine. The only catch is that you will end up with a large number of auto-generated classes in your coverage list. This is because while Scala compiles down into very natural JVM bytecode, it is forced to produce an unnaturally large number of classes to accommodate common functional features like lazy evaluation.
Solution 3:
Undercover is little better.