Skip to content

Commit ec0148b

Browse files
committed
Fixed script
1 parent 647f595 commit ec0148b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/sonarqube.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ jobs:
210210
211211
# Run only a single test class with coverage explicitly enabled
212212
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"
214214
TEST_RESULT=$?
215215
if [ $TEST_RESULT -ne 0 ]; then
216216
echo "Some instrumented tests failed, but continuing to check for coverage data..."
@@ -316,9 +316,11 @@ jobs:
316316
- name: Generate combined coverage report
317317
run: |
318318
# Generate combined report - allow failures
319-
./gradlew jacocoCombinedReport || {
319+
./gradlew jacocoCombinedReport
320+
COMBINED_RESULT=$?
321+
if [ $COMBINED_RESULT -ne 0 ]; then
320322
echo "Failed to generate combined report, but continuing..."
321-
}
323+
fi
322324
323325
# Check if the combined report was generated with content
324326
if [ -f build/reports/jacoco/jacocoCombinedReport/jacocoCombinedReport.xml ]; then

0 commit comments

Comments
 (0)