Skip to content

Commit

Permalink
Reverting back to original changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Rd4dev committed Jun 29, 2024
1 parent bab336e commit 2ee1bba
Show file tree
Hide file tree
Showing 2 changed files with 156 additions and 132 deletions.
10 changes: 0 additions & 10 deletions scripts/src/java/org/oppia/android/scripts/coverage/RunCoverage.kt
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ import java.util.concurrent.TimeUnit
*
* Example:
* bazel run //scripts:run_coverage -- $(pwd)
* utility/src/main/java/org/oppia/android/util/parser/math/MathModel.kt HTML *
* Example reverted:
* bazel run //scripts:run_coverage -- $(pwd)
* utility/src/main/java/org/oppia/android/util/parser/math/MathModel.kt format=HTML
* Example with custom process timeout:
* bazel run //scripts:run_coverage -- $(pwd)
Expand All @@ -47,13 +44,6 @@ fun main(vararg args: String) {
else -> error("Unsupported report format: $format")
}

/* val format = args.getOrNull(2)
val reportFormat = when {
format.equals("HTML", ignoreCase = true) -> ReportFormat.HTML
format.equals("MARKDOWN", ignoreCase = true) || format == null -> ReportFormat.MARKDOWN
else -> throw IllegalArgumentException("Unsupported report format: $format")
}*/

val reportOutputPath = getReportOutputPath(repoRoot, filePath, reportFormat)

if (!File(repoRoot, filePath).exists()) {
Expand Down
Loading

0 comments on commit 2ee1bba

Please sign in to comment.