Questions tagged [scoverage]

scoverage is a code coverage tool for scala that offers statement and branch coverage.

80 questions
0
votes
0 answers

How do I exclude certain target output sub-directories with maven-assembly-plugin?

I am using Maven 3.x with the maven-assembly-plugin. When I build my project I get the message below. Caused by: org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal…
Jane Wayne
  • 8,205
  • 17
  • 75
  • 120
0
votes
0 answers

Scoverage showing 95% coverage coming from 1 test

I am trying to use the Scoverage maven plugin to check code coverage for Scala code. It seems to be working, except for the fact that 1 test is accounting fro 95%+ of the code coverage. If I remove this one test, my coverage drops to around 1.5%. …
J Calbreath
  • 2,665
  • 4
  • 22
  • 31
0
votes
1 answer

Scoverage with TestNG (and Gradle)

Is it possible to use Scoverage with TestNG or do I have to use JUnit? I included the gradle-scoverage plugin in my Gradle script and it's running, but it shows 0.00% coverage. Is there any way I can configure the script to work or do I have to…
Quizzie
  • 879
  • 4
  • 15
0
votes
1 answer

Scoverage: Ambiguous measurement from branch coverage

I have noticed that all the tests with no control-flow (such as if, else, switch, etc) shows 100% branch coverage due to no branch present in the code block. For example def foo = { println("Hello World!") } Shows 100% branch coverage and 0 %…
user_1357
  • 7,766
  • 13
  • 63
  • 106
0
votes
2 answers

Why does sbt-scoverage report java.lang.RuntimeException: Duplicate mappings for JavaScript files?

I am using sbt-scoverage plugin for a project written in Play Framework. I'm facing the following java.lang.RuntimeException: Duplicate mappings error: [scoverage]: Instrumentation completed [35097 statements] [scoverage]: Written instrumentation…
user_1357
  • 7,766
  • 13
  • 63
  • 106
1 2 3 4 5
6