scct is a code coverage tool for Scala.
Questions tagged [scct]
12 questions
6
votes
3 answers
Code coverage on Play! project
I have a Play! project where I would like to add some code coverage information. So far I have tried JaCoCo and scct. The former has the problem that it is based on bytecode, hence it seems to give warning about missing tests for methods that are…

Andrea
- 20,253
- 23
- 114
- 183
5
votes
2 answers
sbt and scct .... module not found: reaktor#sbt-scct;0.2-SNAPSHOT
scala is version 2.10.2 and sbt is 0.13.0
I am trying to setup scct for scala unit test code coverage so in build.sbt
I added
seq(ScctPlugin.instrumentSettings : _*)
and in project/plugins.sbt I added
resolvers +=…

k1eran
- 4,492
- 8
- 50
- 73
3
votes
1 answer
Can files and folders be excluded from processing in scct?
I would like to know if there is a way I can exclude files/folders from SCCT coverage just like in JaCoCO4SBT
jacoco.excludes in jacoco.Config := Seq("views*", "Routes", "controllers*routes*", "controllers*Reverse*", "controllers*javascript*",…

Roch
- 21,741
- 29
- 77
- 120
3
votes
2 answers
Configuration files not in Play Framework 2.0 classpath when calculating code coverage using SCCT
I configured the Play Framework 2.0 to use SCCT for coverage, and can run scct using play scct:cover.
However, my tests are unable to read any configuration files, because the configuration files are not in the classpath. To wit, I am using the…

Siddhu
- 888
- 3
- 9
- 28
2
votes
2 answers
Disabling parallel execution for scct:test in SBT?
I've been working on a Scala application. To do it properly, I want the kernel of my code to be completely covered by tests. To do that, I'm using the SCCT plugin for SBT.
Unfortunately, my tests rely on an in-memory database (h2). Therefore, my…

irundaia
- 1,720
- 17
- 25
2
votes
1 answer
Code coverage for Scala integration tests with SCCT
I'm running integration tests in Scala - these are found in the src/it/scala directory, and I've added the following to my build.sbt:
seq(Defaults.itSettings: _*)
However, when I run SCCT to calculate code coverage, the integration tests are not…

thomson_matt
- 7,473
- 3
- 39
- 47
1
vote
0 answers
SCCT: Find where most uncovered lines are
We use SCCT to get code coverage for our Play Framework project. It works great, but doesn't make it particularly easy to find where most of the missing lines are. It shows the percentage of each file covered, but doesn't give any idea of how big…

Ben Dilts
- 10,535
- 16
- 54
- 85
1
vote
1 answer
How to set `testOptions in Test` when using scct
In sbt, I can pass arguments to ScalaTest using testOptions in Test += Tests.Arguments("...") as described here.
Is there a way to pass these options through scct to ScalaTest when calling scct:test? I tried testOptions in Scct += ... but it seemed…

earldouglas
- 13,265
- 5
- 41
- 50
0
votes
1 answer
Chisel tools installation; Unable to fint scct
I am trying to get started with Chisel. Following the instructions on Chisel web page, I installed scala 2.11 and sbt, copied the build.sbt and Hello World example. However, I am unable to run the example. I am getting following…
0
votes
1 answer
How to generate code coverage report in multi project builds using scct?
I am working on a multi project build. I have followed same instructions, as mentioned here http://mtkopone.github.io/scct/, to generate code coverage report.
I am able to see this message scct: [testProject] Saving coverage data. on console while…

Ayush Mishra
- 567
- 1
- 7
- 19
0
votes
2 answers
scala code coverage using scct, how to exclude files by regex
using scct in my project there are some files I would like to be excluded
my build file :
object myBuild extends Build {
lazy val americanNinja1 = Project(id = "American-Ninja", base =…

Nimrod007
- 9,825
- 8
- 48
- 71
0
votes
0 answers
Exclude classes from scct in gradle
How can I exclude classes from being covered by scct?
I have a couple of classes residing in some specific folder that I want to not be covered by scala coverage tool. Actually I don't want them to be excluded at all, just from scct.

maks
- 5,911
- 17
- 79
- 123