Skip to content

Commit

Permalink
Update tests for list of files as args implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
Rd4dev committed Jul 12, 2024
1 parent fcf365e commit 7f1bda0
Show file tree
Hide file tree
Showing 3 changed files with 241 additions and 49 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,12 @@ class RunCoverage(

// remove later
println(finalReportText)

val finalReportOutputPath = "$repoRoot/coverage_reports/CoverageReport.md"
File(finalReportOutputPath).apply {
parentFile?.mkdirs()
writeText(finalReportText)
}
}

/** Corresponds to status of the coverage analysis. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ class CoverageReporterTest {

val expectedMarkdown =
"""
|[$filename]($oppiaDevelopGitHubLink/$filename)|80.00%|8 / 10
""".trimIndent()
|[$filename]($oppiaDevelopGitHubLink/$filename)|80.00%|8 / 10
""".trimIndent()

assertThat(reportText).isEqualTo(expectedMarkdown)
}
Expand Down
Loading

0 comments on commit 7f1bda0

Please sign in to comment.