diff --git a/scripts/src/java/org/oppia/android/scripts/common/BazelClient.kt b/scripts/src/java/org/oppia/android/scripts/common/BazelClient.kt index f646e144630..1fedf320860 100644 --- a/scripts/src/java/org/oppia/android/scripts/common/BazelClient.kt +++ b/scripts/src/java/org/oppia/android/scripts/common/BazelClient.kt @@ -147,9 +147,12 @@ class BazelClient(private val rootDirectory: File, private val commandExecutor: val coverageCommandOutputLines = executeBazelCommand( "test", "--collect_code_coverage", + "--combined_report=lcov", bazelTestTarget, "--instrumentation_filter=$computeInstrumentation" ) + println(File(rootDirectory,"/bazel-out/_coverage/_coverage_report.dat").exists()) + println(File(rootDirectory,"/bazel-out/_coverage/_coverage_report.dat").readText()) return parseCoverageDataFilePath(coverageCommandOutputLines)?.let { path -> File(path).readLines() } diff --git a/utility/src/test/java/org/oppia/android/util/parser/math/BUILD.bazel b/utility/src/test/java/org/oppia/android/util/parser/math/BUILD.bazel index 3fb1fc751be..e7be1c5baa9 100644 --- a/utility/src/test/java/org/oppia/android/util/parser/math/BUILD.bazel +++ b/utility/src/test/java/org/oppia/android/util/parser/math/BUILD.bazel @@ -7,6 +7,7 @@ load("//:oppia_android_test.bzl", "oppia_android_test") oppia_android_test( name = "MathModelTest", srcs = ["MathModelTest.kt"], + shard_count = 4, custom_package = "org.oppia.android.util.parser.math", test_class = "org.oppia.android.util.parser.math.MathModelTest", test_manifest = "//utility:test_manifest",