Skip to content

Commit

Permalink
Also skip XmlReport test for Scala 3.2.0 until issue is fixed upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
lefou committed Sep 30, 2022
1 parent cf04a4a commit 91026b1
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions contrib/scoverage/test/src/HelloWorldTests.scala
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,11 @@ trait HelloWorldTests extends utest.TestSuite {
"htmlReport" - workspaceTest(HelloWorld) { eval =>
val Right((_, _)) = eval.apply(HelloWorld.core.test.compile)
val res = eval.apply(HelloWorld.core.scoverage.htmlReport())
if(res.isLeft && testScalaVersion.startsWith("3.2") && testScoverageVersion.startsWith("2.")) {
if (
res.isLeft && testScalaVersion.startsWith("3.2") && testScoverageVersion.startsWith(
"2."
)
) {
s"""Disabled for Scoverage ${testScoverageVersion} on Scala ${testScalaVersion}, as it fails with "No source root found" message"""
} else {
assert(res.isRight)
Expand All @@ -162,8 +166,19 @@ trait HelloWorldTests extends utest.TestSuite {
}
"xmlReport" - workspaceTest(HelloWorld) { eval =>
val Right((_, _)) = eval.apply(HelloWorld.core.test.compile)
val Right((result, evalCount)) = eval.apply(HelloWorld.core.scoverage.xmlReport())
assert(evalCount > 0)
val res = eval.apply(HelloWorld.core.scoverage.xmlReport())
if (
res.isLeft && testScalaVersion.startsWith("3.2") && testScoverageVersion.startsWith(
"2."
)
) {
s"""Disabled for Scoverage ${testScoverageVersion} on Scala ${testScalaVersion}, as it fails with "No source root found" message"""
} else {
assert(res.isRight)
val Right((_, evalCount)) = res
assert(evalCount > 0)
""
}
}
"console" - workspaceTest(HelloWorld) { eval =>
val Right((_, _)) = eval.apply(HelloWorld.core.test.compile)
Expand Down

0 comments on commit 91026b1

Please sign in to comment.