Questions tagged [scoverage]

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

80 questions
1
vote
1 answer

Scoverage + jenkins: How to fail build if coverage criteria is not met? Is it possible using Scoverage report plugin for Jenkins?

Is it possible using SCoverage report plugin for Jenkins? If yes could you please let me know the step.
1
vote
1 answer

how to execute scoverage report with optional parameters using maven command

how can I add this optional parameters (e.g minimumCoverage ) with scoverage-maven-plugin . when calling mvn scoverage:check
igx
  • 4,101
  • 11
  • 43
  • 88
1
vote
0 answers

unable to generate report for task reportScoverage using Scoverage plugin for gradle

Have integrated scoverare plugin of gradle for scala project and am able to run all the tasks from command line. the reportScoverage task runs but it skips saying no output type defined. I tried following reportScoverage { coverageOutputHTML =…
1
vote
2 answers

How do I configure scoverage when using SBT?

When using the cobertura-maven-plugin for Java, I get a nice block in the config where I can put the incredibly useful block. Best thing to happen to coverage since the gin martini. Now I'm using…
1
vote
1 answer

Scoverage with ScalaJs Cross Build Project on Play Framework

I am working on a ScalaJs cross build application on Play Framework and want to use scoverage to check the coverage but I get linking errors. I went through some materials online and the information there seems to suggest that as of now it may not…
1
vote
1 answer

Issues with using Scoverage: Scala Sbt

I added the scoverage plugin to projects/plugins.sbt addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.3.5") I was able to generate test coverage using sbt clean coverage test sbt coveragereport However when I try to add socverage config to my…
konquestor
  • 1,308
  • 3
  • 15
  • 29
1
vote
0 answers

Scoverage and Spray Testkit

I'm having trouble running scoverage plugin with the spray testkit. Whenever I run my tests with the scoverage enabled, the tests fails. Without scoverage enabled, it passes. I tried adding this to my test, at the top of my class to increase the…
JWC
  • 1,745
  • 2
  • 12
  • 14
1
vote
0 answers

Integrated coverage using scoverage for scala code and test cases written in python

I am trying to get test coverage for Scala project. 1.Test cases are written in python. 2.Need to run multiple test cases at same time and finally get coverage report. Its like integrated test coverage. Referring…
StackTrace
  • 221
  • 5
  • 12
1
vote
1 answer

Code coverage for scala with separate test project in java

I have two separate projects, Product and CompoTestProduct. Product is written in Scala and uses sbt while CompoTestProduct is written in Java and uses maven. Product will be deployed in a server and CompoTestProduct's tests classes will be ran…
Frank Smith
  • 1,717
  • 4
  • 18
  • 32
1
vote
3 answers

getting code coverage for java code with scala tests

The project is a multi module maven project with 90% of the source code written in Java (there's a small bit in Scala). The unit tests are 80/20 java/scala, and the integration tests are 20/80 java/scala. I tried Clover, but (at this time) it…
GrandVizier
  • 499
  • 7
  • 19
1
vote
3 answers

Executing task with custom and plugin's configs in sbt?

I have an SBT project that has a full build definition with a custom config used for testing. I add a plugin that comes with its own configuration, and I want to be able to execute a task using both configurations if possible. If not possible, I…
Brett
  • 5,690
  • 6
  • 36
  • 63
1
vote
2 answers

Exclude plugin's libraryDependencies from released application when "package" in SBT

In my SBT project I use sbt-scoverage plugin. I did what the documentation says and added ScoverageSbtPlugin.instrumentSettings to build.sbt. Everything works great so far. When I package my app I can see in pom.xml that there is a dependency that…
Rado Buransky
  • 3,252
  • 18
  • 25
0
votes
1 answer

How do i get sbt to resolve full scala version

I have "org.scoverage" %% "scalac-scoverage-plugin" % "2.0.8" under my library dependencies in my build.sbt, and scalaVersion := "2.13.1" lazy val root = (project in file(".")). settings( name := "", version := "0.1", …
Mr. MonoChrome
  • 1,383
  • 3
  • 17
  • 39
0
votes
1 answer

scoverage maven plugin does not generate html report

There are some similar questions in the past, but I either don't see any valid answer or in a different situation. My project is a pure Scala project managed by maven. While the POM file is rather big, I'd only pick some relevant snippets:
Liang HE
  • 73
  • 5
0
votes
1 answer

How to exclude method in class from scoverage report?

I have few methods in my scala play framework application that I want to be excluded from scoverage report. Is there any way to achieve this? May be similar to using @Generated annotations for methods to be excluded as for Jacoco 0.8.2…
Sameer Mirji
  • 2,135
  • 16
  • 28