Skip to content

Commit

Permalink
Adding a composer test script that excludes external HTTP requests by…
Browse files Browse the repository at this point in the history
… default
  • Loading branch information
aldavigdis committed Mar 23, 2024
1 parent 277d682 commit 4c1e9aa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ jobs:
- name: PHPUnit
env:
WP_VERSION: ${{ matrix.wp-versions }}
run: ./vendor/bin/phpunit --testdox --coverage-text --coverage-filter=src --display-warnings --display-notices
run: composer test
4 changes: 4 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,9 @@
"imposter": {
"namespace": "NineteenEightyFour\\NineteenEightyWoo"
}
},
"scripts": {
"test": "./vendor/bin/phpunit --testdox --exclude-group external-api --display-warnings --display-notices",
"test:external": "./vendor/bin/phpunit --testdox --group external-api --display-warnings --display-notices"
}
}

0 comments on commit 4c1e9aa

Please sign in to comment.