From 7c32b5e4232cfc26c665174d890caf17623789dc Mon Sep 17 00:00:00 2001 From: Rd Date: Fri, 19 Jul 2024 19:02:50 +0530 Subject: [PATCH] Exempting the file compute affected tests to cause a intentional coverage check status fail --- scripts/assets/test_file_exemptions.textproto | 4 ++++ .../java/org/oppia/android/scripts/coverage/RunCoverage.kt | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/assets/test_file_exemptions.textproto b/scripts/assets/test_file_exemptions.textproto index d1ff255fc64..4bcfc26c39f 100644 --- a/scripts/assets/test_file_exemptions.textproto +++ b/scripts/assets/test_file_exemptions.textproto @@ -1,3 +1,7 @@ +test_file_exemption { + exempted_file_path: "scripts/src/java/org/oppia/android/scripts/ci/ComputeAffectedTests.kt" + override_min_coverage_percent_required: 90 +} test_file_exemption { exempted_file_path: "app/src/main/java/org/oppia/android/app/activity/ActivityComponent.kt" test_file_not_required: true diff --git a/scripts/src/java/org/oppia/android/scripts/coverage/RunCoverage.kt b/scripts/src/java/org/oppia/android/scripts/coverage/RunCoverage.kt index 05fd921b014..0ed37480746 100644 --- a/scripts/src/java/org/oppia/android/scripts/coverage/RunCoverage.kt +++ b/scripts/src/java/org/oppia/android/scripts/coverage/RunCoverage.kt @@ -14,7 +14,7 @@ import org.oppia.android.scripts.proto.TestFileExemptions import java.io.File import java.util.concurrent.TimeUnit -private val MIN_THRESHOLD = 90 // yet to be decided on a value +private val MIN_THRESHOLD = 10 // yet to be decided on a value /** * Entry point function for running coverage analysis for a source file.