File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -210,7 +210,7 @@ jobs:
210
210
211
211
# Run only a single test class with coverage explicitly enabled
212
212
echo "\n[DEBUG] Running instrumentation with explicit coverage flag:"
213
- adb shell am instrument -w -e coverage true -e class tests.database.DatabaseInitializationTest $TEST_PACKAGE
213
+ adb shell " am instrument -w -e coverage true -e class tests.database.DatabaseInitializationTest $TEST_PACKAGE"
214
214
TEST_RESULT=$?
215
215
if [ $TEST_RESULT -ne 0 ]; then
216
216
echo "Some instrumented tests failed, but continuing to check for coverage data..."
@@ -316,9 +316,11 @@ jobs:
316
316
- name : Generate combined coverage report
317
317
run : |
318
318
# Generate combined report - allow failures
319
- ./gradlew jacocoCombinedReport || {
319
+ ./gradlew jacocoCombinedReport
320
+ COMBINED_RESULT=$?
321
+ if [ $COMBINED_RESULT -ne 0 ]; then
320
322
echo "Failed to generate combined report, but continuing..."
321
- }
323
+ fi
322
324
323
325
# Check if the combined report was generated with content
324
326
if [ -f build/reports/jacoco/jacocoCombinedReport/jacocoCombinedReport.xml ]; then
You can’t perform that action at this time.
0 commit comments