Skip to content

Commit 9af994e

Browse files
committed
adding junit test reporter
1 parent 299c1c2 commit 9af994e

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/presubmit.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,22 @@ jobs:
8585
with:
8686
sdk: ${{ matrix.dart-version }}
8787

88-
- name: (MACOS/LINUX) Run Dart Analysis Server Tests with Dart SDK ${{ matrix.dart-version }}
88+
- name: Run Dart Analysis Server Tests with Dart SDK ${{ matrix.dart-version }}
8989
if: always() #runner.os == 'Linux' || runner.os == 'macOS' # Run even if one SDK version fails
9090
# Pass the Dart SDK path with DART_HOME
9191
run: |
9292
./gradlew :test --tests "com.jetbrains.dart.analysisServer.*"
9393
working-directory: third_party
9494

95+
- name: Generate Reports
96+
if: always()
97+
uses: dorny/test-reporter@v1
98+
with:
99+
name: My Test Results
100+
path: '**/TEST-*.xml' # Path to your JUnit XML files
101+
reporter: java-junit # Or specify other reporter types if needed (e.g., python-junit)
102+
fail-on-error: true # Optional: Fail the workflow if tests fail
103+
95104
#- name: (WINDOWS) Run Dart Analysis Server Tests with Dart SDK ${{ matrix.dart-version }}
96105
# if: runner.os == 'Windows' # Run even if one SDK version fails
97106
# # Pass the Dart SDK path with DART_HOME

0 commit comments

Comments
 (0)