Blank Scoverage HTML Report on Jenkins

384 Views Asked by At

I'm using Scoverage for coverage reporting on a scala project. The XML report is generated properly but the HTML version looks blank like this

enter image description here

I'm using scalatest version "3.1.1" and latest coverage plugin version

addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.6.1")

This problem seems to be around for a long time with the Jenkins plugin, see issue but without any recent activity/fix.

What would be an alternative option? is switching to JaCoCo would help?

1

There are 1 best solutions below

0
On

Main issue still not resolved, I'm currently using this plugin in Chrome Content Security Policy Override with a config like this

# Whitelisting jenkins SCoverage Report:
[
  ["https://jenkins\\.mydomain\\.com", [
    [".*", ""]
  ]]
]