File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -117,6 +117,8 @@ $ composer run install:tools # Install phpDocumentor using phive
117
117
After following the steps shown above, ZipStream-PHP's test suite is run like
118
118
this:
119
119
120
+ Make sure ` xdebug ` is installed for test coverage.
121
+
120
122
``` bash
121
123
$ composer run test:unit
122
124
```
Original file line number Diff line number Diff line change 73
73
if : matrix.php == 'nightly'
74
74
run : composer install --prefer-dist --ignore-platform-req=php+
75
75
- name : Run PHPUnit
76
- run : composer run test:unit
77
- env :
78
- XDEBUG_MODE : coverage
76
+ run : composer run test:unit:cov
79
77
- name : Upload coverage results to Coveralls
80
78
env :
81
79
COVERALLS_REPO_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 33
33
"mikey179/vfsstream" : " ^1.6" ,
34
34
"php-coveralls/php-coveralls" : " ^2.5" ,
35
35
"friendsofphp/php-cs-fixer" : " ^3.16" ,
36
- "vimeo/psalm" : " ^6.0"
36
+ "vimeo/psalm" : " ^6.0" ,
37
+ "brianium/paratest" : " ^7.7"
37
38
},
38
39
"suggest" : {
39
40
"psr/http-message" : " ^2.0" ,
46
47
" @test:formatted" ,
47
48
" @test:lint"
48
49
],
49
- "test:unit" : " phpunit --coverage-clover=coverage.clover.xml --coverage-html cov" ,
50
+ "test:unit" : " paratest --functional" ,
51
+ "test:unit:cov" : " XDEBUG_MODE=coverage paratest --functional --coverage-clover=coverage.clover.xml --coverage-html cov" ,
50
52
"test:unit:slow" : " @test:unit --group slow" ,
53
+ "test:unit:slow:cov" : " @test:unit:cov --group slow" ,
51
54
"test:unit:fast" : " @test:unit --exclude-group slow" ,
55
+ "test:unit:fast:cov" : " @test:unit:cov --exclude-group slow" ,
52
56
"test:formatted" : " @format --dry-run --stop-on-violation --using-cache=no" ,
53
57
"test:lint" : " psalm --stats --show-info=true --find-unused-psalm-suppress" ,
54
58
"coverage:report" : " php-coveralls --coverage_clover=coverage.clover.xml --json_path=coveralls-upload.json --insecure" ,
You can’t perform that action at this time.
0 commit comments