Comments (1)
After investigating a bit more; after doing a coverage;test
after sbt
startup there is scoverage.measurements.****
file created e.g:
$ cd target/scala-3.3.1
$ tree scoverage-data/ scoverage-data/
├── scoverage.coverage
└── scoverage.measurements.58cb6c3d-238f-4782-90d9-f698d1b8bf19.187
but after a clean
and consecutive coverage;test
this file is not created anymore, only the scoverage.coverage
file is recreated. Without the measurements file, the coverage is reported to be 0%.
I verified this by hard-coding the measurements
value in loadCoverage
in which I added a log statement to collect the values:
private def loadCoverage(
crossTarget: File,
log: Logger,
sourceRoot: File
): Option[Coverage] = {
...
..
log.info(s"Reading scoverage measurements...")
val measurementFiles = IOUtils.findMeasurementFiles(dataDir)
// val measurements = IOUtils.invoked(measurementFiles)
val measurements = Set((0, ""), (2, ""), (1, ""))
log.info(s"measurements: ${measurements}")
coverage.apply(measurements)
Some(coverage)
} else {
None
}
}
With the hard-coded Set()
the reported coverage was 37.50% every time despite the measurements file was missing (obviously since I hard-coded the values).
However, this makes me believe that perhaps it's more of a dotty issue than a sbt-coverage issue?
from sbt-scoverage.
Related Issues (20)
- Loading project definition for scala 3 project fails when switching from 2.0.0 to 2.0.4 HOT 2
- coverage compilation fails for scala 3 enum extending java Enum HOT 5
- sbt-scoverage plugin installation failing with dependencies HOT 1
- Please release for Scala 2.13.10 HOT 2
- Dependency issue with play framework HOT 1
- coverageReport task fails when using Scala 3.2.0 with -Yexplicit-nulls HOT 2
- version conflicts with plugins play:sbt-plugin or sbt:sbt-site (about scala-xml) HOT 1
- Getting error after upgrading Scala version 2.13.8 -> 2.13.10 HOT 4
- Compilation with the plugin produces warning after updating to 2.x HOT 2
- Binary incompatibility after 1.9.3 when used together with sbt-scalastyle-plugin HOT 1
- No source root found for `'.../library/src/scala/Tuple.scala' (source roots: '.../src/main/scala/')` HOT 2
- Degraded performance after upgrading to v1.8+ HOT 1
- [Question] How to use plugin in an enterprise environment? HOT 4
- Release 8ba258c HOT 4
- Bump Scala version to 2.13.10 due to a Critical Vulnerability in Scala 2.13.8 HOT 1
- NoDenotation error with scala 3.3.0 HOT 4
- NoDenotation error with scala 3.3.0 HOT 3
- Package / file exclusion does not work with Scala 3 HOT 12
- Avoid Thread.sleep during build HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sbt-scoverage.