Skip to content

Commit

Permalink
Add info for failed nunit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
chkuang-g committed Oct 23, 2023
1 parent 61cd13a commit e1de34b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -143,12 +143,15 @@ jobs:
continue-on-error: true
run: cat test_output/test*IntegrationTestsBatchMode/*.log

- name: Obtain Failed tests
- name: Obtain Failed tests from Integration tests and NUnit tests
if: always()
shell: bash
continue-on-error: true
run: |
# Quick and dirty way to get all failed tests in granular level.
# TODO: better parser for more information, ex. error message.
cat test_output/test*/*_test.log | { grep "^Test .* FAILED$" || true; }
cat test_output/test*/test*/results.xml | { grep '^ *<test-case.*result="Failed"' || true; } | sed 's/^.* name="\([^\"]*\)".*$/Test \1: FAILED/'
- name: Return Unity license
if: always()
Expand Down

0 comments on commit e1de34b

Please sign in to comment.