Skip to content

Commit

Permalink
Run tests with JUnit reporting instead of TestDox
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Feb 28, 2023
1 parent 519a398 commit 84673ec
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
run: composer install --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist

- name: Execute tests (Unit and Feature tests) via PHPUnit
run: vendor/bin/pest --testdox-text testdox.txt
run: vendor/bin/pest --log-junit report.xml

- name: Ping statistics server with test results
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/smoke-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
run: composer install --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist

- name: Run smoke tests
run: vendor/bin/pest --stop-on-failure --testdox-text testdox.txt
run: vendor/bin/pest --stop-on-failure --log-junit report.xml

- name: Ping statistics server with test results
run: |
Expand Down Expand Up @@ -59,7 +59,7 @@ jobs:
run: echo "ENV=testing" > .env

- name: Execute tests (Unit and Feature tests) via PHPUnit with coverage
run: vendor/bin/pest --coverage --coverage-clover clover.xml --testdox-text testdox.txt
run: vendor/bin/pest --coverage --coverage-clover clover.xml --log-junit report.xml

- name: "Publish coverage report to Codecov"
uses: codecov/codecov-action@v3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-pull-requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
run: php hyde debug

- name: Execute tests (Unit and Feature tests) via PHPUnit with coverage
run: vendor/bin/pest --coverage --coverage-text=build/coverage/report.txt --colors=always --coverage-clover build/coverage/clover.xml --coverage-cobertura build/coverage/cobertura.xml --coverage-crap4j build/coverage/crap4j.xml --coverage-xml build/coverage/coverage-xml --log-junit build/junit.xml --testdox-text testdox.txt
run: vendor/bin/pest --coverage --coverage-text=build/coverage/report.txt --colors=always --coverage-clover build/coverage/clover.xml --coverage-cobertura build/coverage/cobertura.xml --coverage-crap4j build/coverage/crap4j.xml --coverage-xml build/coverage/coverage-xml --log-junit build/junit.xml --log-junit report.xml
env:
ENV: testing

Expand Down Expand Up @@ -72,7 +72,7 @@ jobs:
run: composer install --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist

- name: Execute tests (Unit and Feature tests) via PHPUnit
run: vendor/bin/pest --testdox-text testdox.txt
run: vendor/bin/pest --log-junit report.xml

- name: Ping statistics server with test results
run: |
Expand Down
2 changes: 1 addition & 1 deletion monorepo/scripts/ping-openanalytics-testrunner.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* @example php ping.php 'Monorepo Smoke Tests' ${{ secrets.OPENANALYTICS_TOKEN }}
*
* @uses vendor/bin/pest --stop-on-failure --testdox-text testdox.txt
* @uses vendor/bin/pest --stop-on-failure --log-junit report.xml
*/
echo "Pinging statistics server\n";

Expand Down

0 comments on commit 84673ec

Please sign in to comment.