Skip to content

Commit

Permalink
fix(android_parsing): change overrides only when test run fails
Browse files Browse the repository at this point in the history
  • Loading branch information
matzuk committed Dec 22, 2023
1 parent f4bc58c commit 0c65cbe
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,9 @@ class AmInstrumentTestParser(
testBundleIdentifier.put(test, androidTestBundle)
}

is TestRunFailed -> Unit
is TestRunFailed -> {
if (overrides.containsKey(LISTENER_ARGUMENT)) throw PossibleListenerIssueException()
}
is TestRunStopped -> Unit
is TestRunEnded -> Unit
}
Expand All @@ -138,7 +140,6 @@ class AmInstrumentTestParser(
"Bundle ${bundle.id} did not report any test annotations. If you need test annotations retrieval, remote test parser requires additional setup " +
"see https://docs.marathonlabs.io/android/configure#test-parser"
}
if (overrides.containsKey(LISTENER_ARGUMENT)) throw PossibleListenerIssueException()
}

tests
Expand Down

0 comments on commit 0c65cbe

Please sign in to comment.