Skip to content

Commit

Permalink
Backport Rewrite phpunit tests to pest (spatie#183)
Browse files Browse the repository at this point in the history
This will help backporting changes from main branch
  • Loading branch information
weirdan committed Dec 13, 2022
1 parent 4145e6c commit d1a0430
Show file tree
Hide file tree
Showing 12 changed files with 405 additions and 455 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,9 @@ jobs:
- name: Setup problem matchers
run: |
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Install dependencies
run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction

- name: Execute tests
run: vendor/bin/phpunit
run: vendor/bin/pest
10 changes: 8 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"require-dev": {
"phpunit/phpunit" : "^9.0",
"mockery/mockery": "^1.2",
"spatie/phpunit-snapshot-assertions": "^4.2"
"pestphp/pest": "^1.21",
"spatie/pest-plugin-snapshots": "^1.1"
},
"autoload": {
"psr-4": {
Expand All @@ -36,6 +37,11 @@
}
},
"scripts": {
"test": "vendor/bin/phpunit"
"test": "vendor/bin/pest"
},
"config": {
"allow-plugins": {
"pestphp/pest-plugin": true
}
}
}
Loading

0 comments on commit d1a0430

Please sign in to comment.