-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
18 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,12 +37,12 @@ jobs: | |
python scripts/into_junit.py /tmp/SHARED.UNITS > junit.xml | ||
- name: Convert JUnit XML to Standard HTML Report | ||
continue-on-error: true # Continue even if this step fails | ||
continue-on-error: true # Continue to the next step even if this one fails | ||
run: | | ||
junit2html junit.xml junit-standard-report.html | ||
- name: Convert JUnit XML to Matrix HTML Report | ||
continue-on-error: true # Continue even if this step fails | ||
continue-on-error: true # Continue to the next step even if this one fails | ||
run: | | ||
junit2html --report-matrix junit-matrix-report.html junit.xml | ||
|
@@ -72,13 +72,26 @@ jobs: | |
reporter: 'java-junit' # Correct reporter type for JUnit XML | ||
fail-on-error: false # Do not fail the job if tests fail | ||
|
||
- name: Compare JUnit Test Results | ||
- name: Compare JUnit Test Results with mikepenz | ||
uses: mikepenz/action-junit-report@v3 | ||
with: | ||
report_paths: junit.xml | ||
compare_to_previous: true | ||
fail_on_failure: false | ||
fail_on_failure: false # Do not fail the job if tests fail | ||
|
||
- name: Diff JUnit Test Results | ||
uses: Juit/[email protected] | ||
with: | ||
base-junit: junit-report/base.xml # Adjust to your previous report location | ||
head-junit: junit.xml # The current test report | ||
output: junit-diff-report.html | ||
|
||
- name: Upload JUnit Diff Report | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: junit-diff-html-report | ||
path: junit-diff-report.html | ||
|
||
- name: Display HTML Report Information | ||
run: | | ||
echo "Both standard and matrix HTML reports are available as artifacts. JUnit test comparison report is also available." | ||
echo "Standard, matrix, and diff HTML reports are available as artifacts. JUnit test comparison reports are also available." |