Skip to content

Commit b340c4c

Browse files
committed
fix : fix tests
1 parent dfd9f37 commit b340c4c

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

.github/workflows/gradle.yml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,31 @@ jobs:
3737
run: chmod +x ./gradlew
3838

3939
- name: Build with Gradle Wrapper
40-
run: ./gradlew build
40+
run: ./gradlew build --info
41+
42+
- name: Run tests with detailed output
43+
run: ./gradlew test --info --continue --stacktrace
44+
continue-on-error: false
45+
46+
- name: Print test results on failure
47+
if: failure()
48+
run: |
49+
echo "=== Test Failures ==="
50+
find . -name "TEST-*.xml" -exec echo "File: {}" \; -exec cat {} \; || true
51+
echo "=== Build Reports ==="
52+
find build/reports/tests -name "index.html" -exec echo "Test report location: {}" \; || true
53+
echo "=== Test Stdout/Stderr ==="
54+
find build/test-results -name "*.xml" -exec echo "=== {} ===" \; -exec cat {} \; || true
55+
56+
- name: Upload test reports
57+
uses: actions/upload-artifact@v4
58+
if: always()
59+
with:
60+
name: test-reports
61+
path: |
62+
build/reports/tests/
63+
build/test-results/
64+
retention-days: 30
4165

4266
- name: Run quality checks (non-breaking)
4367
run: ./gradlew check -x test

0 commit comments

Comments
 (0)