Skip to content

Commit

Permalink
Display the unit test results
Browse files Browse the repository at this point in the history
  • Loading branch information
vmcj committed Dec 1, 2024
1 parent 8c48547 commit 5cbc0cf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/jobs/unit-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ if [ "$CODECOVERAGE" -eq 1 ]; then
pcov="--coverage-html=${DIR}/coverage-html --coverage-clover coverage.xml"
fi
set +e
php $phpcov webapp/bin/phpunit -c webapp/phpunit.xml.dist webapp/tests/$unittest --log-junit ${DIR}/unit-tests.xml --colors=never $pcov > "$ARTIFACTS"/phpunit.out
php $phpcov webapp/bin/phpunit -c webapp/phpunit.xml.dist webapp/tests/$unittest --log-junit "$ARTIFACTS"/unit-tests.xml --colors=never $pcov > "$ARTIFACTS"/phpunit.out
UNITSUCCESS=$?
set -e
CNT=0
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,15 @@ jobs:
run: diff newcodecov .github/jobs/uploadcodecov.sh
- name: Run the unit tests
run: .github/jobs/unit-tests.sh ${{ matrix.PHPVERSION }} ${{ matrix.TEST }}
#- name: Publish Test Results
# uses: EnricoMi/publish-unit-test-result-action@v2
# if: always()
# with:
# files: |
# test-results/**/*.xml
- name: Upload artifact for debugging
uses: actions/upload-artifact@v3
if: ${{ !cancelled() }}
with:
name: unit-test-output
path: /tmp/artifacts
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: ${{ !cancelled() }}
with:
files: |
/tmp/artifacts/unit-tests.xml

0 comments on commit 5cbc0cf

Please sign in to comment.