Skip to content

Commit

Permalink
Update the test file exemption list retrieval
Browse files Browse the repository at this point in the history
  • Loading branch information
Rd4dev committed Jun 26, 2024
1 parent 6f4b76f commit 7a020a1
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ class RunCoverage(
*/
fun execute(): List<List<String>> {
val testFileExemptionList = loadTestFileExemptionsProto(testFileExemptionTextProto)
.getExemptedFilePathList()
.testFileExemptionList
.filter { it.testFileNotRequired }
.map { it.exemptedFilePath }

if (filePath in testFileExemptionList) {
println("This file is exempted from having a test file; skipping coverage check.")
Expand Down

0 comments on commit 7a020a1

Please sign in to comment.