Skip to content

Commit

Permalink
Execute tests in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Aug 2, 2024
1 parent 94200cc commit 241f734
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/coverage-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,22 @@ jobs:
cp -R src unit_tests
cp -R src feature_tests
- name: Execute Unit Tests
- name: Execute Tests in Parallel
run: |
cd unit_tests
vendor/bin/pest --coverage --coverage-clover ../unit-clover.xml --log-junit ../unit-report.xml --testsuite=UnitFramework
- name: Execute Feature Tests
run: |
cd feature_tests
vendor/bin/pest --coverage --coverage-clover ../feature-clover.xml --log-junit ../feature-report.xml --testsuite=FeatureHyde,FeatureFramework,Publications,"Realtime Compiler"
# Start unit tests in the background
(
cd unit_tests
vendor/bin/pest --coverage --coverage-clover ../unit-clover.xml --log-junit ../unit-report.xml --testsuite=UnitFramework
) &
# Start feature tests in the background
(
cd feature_tests
vendor/bin/pest --coverage --coverage-clover ../feature-clover.xml --log-junit ../feature-report.xml --testsuite=FeatureHyde,FeatureFramework,Publications,"Realtime Compiler"
) &
# Wait for both background processes to finish
wait
- name: Install phpcov
run: composer global require phpunit/phpcov
Expand Down

0 comments on commit 241f734

Please sign in to comment.