Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Updated tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
mwz committed Sep 28, 2018
1 parent c378f59 commit 9c8fdba
Showing 1 changed file with 6 additions and 5 deletions.
Expand Up @@ -49,14 +49,15 @@ class ScapegoatReportParserSpec extends FlatSpec with Matchers with WithFile {
linuxPath shouldBe file.toString
}

it should "handle correctly multiple dots in path" in withFile(cwd.resolve("example.file.scala")) { file =>
val scapegoatPath = file.toString.replace("/", ".")
val linuxPath = scapegoatReportParser.replaceAllDotsButLastWithSlashes(scapegoatPath)
it should "handle correctly multiple dots in the path" in withFile(cwd.resolve("example..file.scala")) {
file =>
val scapegoatPath = file.toString.replace("/", ".")
val linuxPath = scapegoatReportParser.replaceAllDotsButLastWithSlashes(scapegoatPath)

linuxPath shouldBe file.toString
linuxPath shouldBe file.toString
}

it should "be able to parse an empty report" in {
"ScapegoatReportParser" should "be able to parse an empty report" in {
val scapegoatReportPath = Paths.get("src", "test", "resources", "scapegoat", "no-warnings.xml")
val scapegoatWarnings = scapegoatReportParser.parse(scapegoatReportPath)

Expand Down

0 comments on commit 9c8fdba

Please sign in to comment.