Skip to content

Commit

Permalink
Capture all output
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Aug 2, 2024
1 parent 0fad334 commit 81dacb3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/coverage-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ jobs:
}
while IFS= read -r line; do
echo "\$line" >> "\$1_full_output.log"
if [[ \$line == *"[x]"* ]]; then
update_progress "\$1" "X"
elif [[ \$line == *"[✓]"* ]]; then
Expand All @@ -80,25 +81,25 @@ jobs:
# Start unit tests in the background
(
cd unit_tests
vendor/bin/pest --coverage-php=../coverage/unit.cov --testsuite=UnitFramework | tee unit_output.log | ../formatter.sh unit
vendor/bin/pest --coverage-php=../coverage/unit.cov --testsuite=UnitFramework 2>&1 | ../formatter.sh unit
) &
# Start feature tests in the background
(
cd feature_tests
vendor/bin/pest --coverage-php=../coverage/feature.cov --testsuite=FeatureHyde,FeatureFramework,Publications,"Realtime Compiler" | tee feature_output.log | ../formatter.sh feature
vendor/bin/pest --coverage-php=../coverage/feature.cov --testsuite=FeatureHyde,FeatureFramework,Publications,"Realtime Compiler" 2>&1 | ../formatter.sh feature
) &
# Wait for both background processes to finish
wait
- name: Print Unit Test Output
if: always()
run: cat unit_tests/unit_output.log
run: cat unit_full_output.log

- name: Print Feature Test Output
if: always()
run: cat feature_tests/feature_output.log
run: cat feature_full_output.log

- name: Download phpcov
run: wget https://phar.phpunit.de/phpcov.phar
Expand Down

0 comments on commit 81dacb3

Please sign in to comment.