83 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
118
views
Using scoverage with scala3 and mill
TL;DR -- How do I configure the mill-contrib-scoverage plugin to work with Scala3?
Details:
Using the instructions at the Mill contributor's page, I get the following error when running the scoverage....
1
vote
0
answers
39
views
What is the equivalent of 'sources' in gradle-scoverage in version 7, in the latest gradle-scoverage version 8
In gradle-scoverage version 7.0.3
I have
scoverage {
sources = file("{sourceDir}")
I have upgraded to gradle-scoverage version 8.0.3
it says that sources does not exists any more.
What ...
0
votes
1
answer
332
views
sbt scoverage plugin error: java.lang.NoSuchMethodError: sbt.package$.singleFileJsonFormatter()Lsjsonnew/JsonFormat;
i am trying to use scoverage for code coverage in my plugins.sbt i have added
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "2.0.9")
here is my build.sbt
ThisBuild / ...
0
votes
1
answer
857
views
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 = (...
1
vote
0
answers
41
views
Can Sbt keep instrumented class files alongside non-instrumented?
I go back and forth a lot between coverageOn and coverageOff and every time I switch, Sbt has to recompile modules all over again.
I wonder if, by putting instrumented class files under a different ...
1
vote
2
answers
1k
views
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,...
0
votes
1
answer
1k
views
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 ...
3
votes
1
answer
6k
views
error: java.lang.NoSuchMethodError: 'scala.tools.nsc.reporters.Reporter scala.tools.nsc.Global.reporter()' in scoverage-maven-plugin
I am trying to get some reports with the code coverage information for my project. I found that scoverage-maven-plugin produce xml files covering the % of the different modules that the unit test ...
0
votes
0
answers
310
views
Want to eliminate: "[WARNING] Could not determine source for class com.mycompany.MyClass_" when building Java + Scala project
I am using maven with the scala-maven-plugin for building a project that is a mixture of Java 1.8 and Scala 2.12.7 code. When I build from the command line with:
mvn clean install -DskipTests
I get ...
3
votes
1
answer
840
views
Excluding tests from coverage report with sbt coverage
I have a test that is non-functional, so I do not want it to affect the coverage report. Other than putting it in a separate project, is there a way to exclude it from the report when running
sbt ...
0
votes
1
answer
1k
views
Scala SBT Plugin Version Error During Build
I keep getting the following error from my GitHub Actions workflow:
[info] welcome to sbt 1.7.1 (Eclipse Adoptium Java 11.0.16.1)
[info] loading settings for project plant-simulator-build from plugins....
0
votes
0
answers
353
views
Multi module Scala project gives 0% sonar code coverage
I am using SonarQube Enterprise EditionVersion 7.9.1. I am running maven goal for my multi-module scala project as :
mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent verify org.sonarsource....
1
vote
0
answers
364
views
scoverage exclude packages for test vs integration test
in my build.scala i have
coverageExcludedPackages in ThisBuild := ".*dao.*"
which works great for excluding the package from coverage however i want to be able to exclude and include based ...
1
vote
1
answer
2k
views
scoverage fails due to unresolved dependency path
IDE_version:
IntelliJ IDEA Ultimate 2021年2月3日
Scala_version:
3.1.0
build.properties:
sbt.version=1.5.5
libraryDependencies:
libraryDependencies += "org.scalactic" %% "scalactic&...
2
votes
2
answers
2k
views
Scala unit-tests in IntelliJ fail with java.lang.NoClassDefFoundError scoverage/Invoker$
Tests run without any problem in sbt, but when you need them in IntelliJ, they fail.
A needed class was not found. This could be due to an error in your runpath.
Missing class: scoverage/Invoker$
java....