Open
Description
I do not see that ZIO specs are instrumented:
chris@neptun:~/prj/toil/zio-geolocation$ sbt clean coverage test coverageReport
[info] welcome to sbt 1.7.1 (Ubuntu Java 11.0.16)
[info] loading settings for project global-plugins from sbt-updates.sbt ...
[info] loading global plugins from /home/chris/.sbt/1.0/plugins
[info] loading settings for project zio-geolocation-build-build-build from metals.sbt ...
[info] loading project definition from /home/chris/prj/toil/zio-geolocation/project/project/project
[info] loading settings for project zio-geolocation-build-build from metals.sbt ...
[info] loading project definition from /home/chris/prj/toil/zio-geolocation/project/project
[success] Generated .bloop/zio-geolocation-build-build.json
[success] Total time: 0 s, completed Sep 6, 2022, 9:23:00 AM
[info] loading settings for project zio-geolocation-build from metals.sbt,plugins.sbt ...
[info] loading project definition from /home/chris/prj/toil/zio-geolocation/project
[success] Generated .bloop/zio-geolocation-build.json
[success] Total time: 1 s, completed Sep 6, 2022, 9:23:01 AM
[info] loading settings for project root from build.sbt,sbt.sbt ...
[info] set current project to zio-geolocation (in build file:/home/chris/prj/toil/zio-geolocation/)
[success] Total time: 0 s, completed Sep 6, 2022, 9:23:02 AM
[info] Defining ThisBuild / coverageEnabled
[info] The new value will be used by Compile / compile / scalacOptions, libraryDependencies
[info] Reapplying settings...
[info] set current project to zio-geolocation (in build file:/home/chris/prj/toil/zio-geolocation/)
[info] scalafmt: Formatting 7 Scala sources (/home/chris/prj/toil/zio-geolocation/modules/core)...
[info] scalafmt: Formatting 23 Scala sources (/home/chris/prj/toil/zio-geolocation/modules/core)...
[info] compiling 23 Scala sources to /home/chris/prj/toil/zio-geolocation/modules/core/target/scala-3.2.0/classes ...
[info] compiling 7 Scala sources to /home/chris/prj/toil/zio-geolocation/modules/core/target/scala-3.2.0/test-classes ...
+ CellFinderSpec
+ normalizeId
timestamp=2022-09-06T07:23:25.536582Z level=INFO thread=#zio-fiber-111 message="Position based on single cell with id <1>, GeoPosition(49.0,11.0)" location=com.tsystems.toil.geolocation.logic.lookup.PositionCalculator.positionForSingleCell file=PositionCalculator.scala line=24
+ LTE Cell Hint ids are not changed
+ GSM Cell Hint ids are not changed
+ WCDMA/UMTS Cell Hint ids are normalized
+ findCell
+ An unknown cell hint returns None
+ CellFinder.findCell on all tower fixtures
+ An known Lte cell hint (id: 25605889) with lac=None for a tower returns its position and strength
+ An known Gsm cell hint (id: 978) with lac=Some(5891) for a tower returns its position and strength
+ An known Umts cell hint (id: 48358) with lac=Some(6086) for a tower returns its position and strength
+ CellHint
+ REST request cell types are correctly translated to stored cell types
+ PositionCalculatorSpec
+ calculatePosition
+ List with one cell returns its position
+ Empty list of cells produces no position output
10 tests passed. 0 tests failed. 0 tests ignored.
Executed in 954 ms
[info] Completed tests
[success] Total time: 22 s, completed Sep 6, 2022, 9:23:25 AM
[info] Waiting for measurement data to sync...
[info] Waiting for measurement data to sync...
[info] Reading scoverage instrumentation [/home/chris/prj/toil/zio-geolocation/target/scala-3.2.0/scoverage-data/scoverage.coverage]
[warn] No coverage data, skipping reports
[info] Reading scoverage instrumentation [/home/chris/prj/toil/zio-geolocation/modules/core/target/scala-3.2.0/scoverage-data/scoverage.coverage]
[info] Reading scoverage measurements...
[info] Generating scoverage reports...
[info] Written Cobertura report [/home/chris/prj/toil/zio-geolocation/modules/core/target/scala-3.2.0/coverage-report/cobertura.xml]
[info] Written XML coverage report [/home/chris/prj/toil/zio-geolocation/modules/core/target/scala-3.2.0/scoverage-report/scoverage.xml]
[error] java.lang.RuntimeException: No source root found for '/home/chris/prj/toil/zio-geolocation/core/shared/src/main/scala-3/zio/ServiceTagVersionSpecific.scala' (source roots: '/home/chris/prj/toil/zio-geolocation/modules/core/src/main/scala/')
[error] at scoverage.reporter.BaseReportWriter.relativeSource(BaseReportWriter.scala:35)
[error] at scoverage.reporter.BaseReportWriter.relativeSource(BaseReportWriter.scala:23)
[error] at scoverage.reporter.ScoverageHtmlWriter.classRow(ScoverageHtmlWriter.scala:249)
[error] at scoverage.reporter.ScoverageHtmlWriter.$anonfun$classesTable$2(ScoverageHtmlWriter.scala:239)
[error] at scala.collection.immutable.List.map(List.scala:293)
[error] at scoverage.reporter.ScoverageHtmlWriter.classesTable(ScoverageHtmlWriter.scala:239)
[error] at scoverage.reporter.ScoverageHtmlWriter.overview(ScoverageHtmlWriter.scala:460)
[error] at scoverage.reporter.ScoverageHtmlWriter.write(ScoverageHtmlWriter.scala:65)
[error] at scoverage.ScoverageSbtPlugin$.writeReports(ScoverageSbtPlugin.scala:324)
[error] at scoverage.ScoverageSbtPlugin$.$anonfun$coverageReport0$1(ScoverageSbtPlugin.scala:220)
[error] at scoverage.ScoverageSbtPlugin$.$anonfun$coverageReport0$1$adapted(ScoverageSbtPlugin.scala:195)
[error] at scala.Function1.$anonfun$compose$1(Function1.scala:49)
[error] at sbt.internal.util.$tilde$greater.$anonfun$$u2219$1(TypeFunctions.scala:62)
[error] at sbt.std.Transform$$anon$4.work(Transform.scala:68)
[error] at sbt.Execute.$anonfun$submit$2(Execute.scala:282)
[error] at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:23)
[error] at sbt.Execute.work(Execute.scala:291)
[error] at sbt.Execute.$anonfun$submit$1(Execute.scala:282)
[error] at sbt.ConcurrentRestrictions$$anon$4.$anonfun$submitValid$1(ConcurrentRestrictions.scala:265)
[error] at sbt.CompletionService$$anon$2.call(CompletionService.scala:64)
[error] at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
[error] at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
[error] at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
[error] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
[error] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
[error] at java.base/java.lang.Thread.run(Thread.java:829)
[error] (core / coverageReport) No source root found for '/home/chris/prj/toil/zio-geolocation/core/shared/src/main/scala-3/zio/ServiceTagVersionSpecific.scala' (source roots: '/home/chris/prj/toil/zio-geolocation/modules/core/src/main/scala/')
[error] Total time: 2 s, completed Sep 6, 2022, 9:23:27 AM
ThisBuild / scalaVersion := "3.2.0"
[...]
testFrameworks := Seq(new TestFramework("zio.test.sbt.ZTestFramework")),
[...]
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "2.0.1")