File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2727 with :
2828 php-version : ${{ matrix.php-version }}
2929 extensions : curl, json, mbstring
30- coverage : none
30+ coverage : pcov
3131 tools : composer:v2
3232
3333 - name : Set composer cache directory
4646 - name : Install composer dependencies
4747 run : composer install --no-interaction --prefer-dist --no-progress
4848
49- - name : Run phpunit unit tests
50- run : vendor/bin/phpunit --testsuite=unit --colors=always --testdox
49+ - name : Run phpunit unit tests with coverage
50+ run : vendor/bin/phpunit --testsuite=unit --colors=always --testdox --coverage-clover=coverage.xml
5151
5252 # integration tests send requests to the live CurseForge API and need the CURSEFORGE_API_KEY secret,
5353 # so they only run on the master branch and when started manually
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" UTF-8" ?>
22<phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
33 xsi : noNamespaceSchemaLocation =" ./vendor/phpunit/phpunit/phpunit.xsd"
4- bootstrap =" ./ vendor/autoload.php"
4+ bootstrap =" vendor/autoload.php"
55 colors =" true"
66 executionOrder =" random"
77 displayDetailsOnTestsThatTriggerDeprecations =" true"
88 displayDetailsOnTestsThatTriggerErrors =" true"
99 displayDetailsOnTestsThatTriggerNotices =" true"
1010 displayDetailsOnTestsThatTriggerWarnings =" true" >
11- < source >
12- < include >
13- <directory >src </directory >
14- </ include >
15- </ source >
16- < testsuites >
17- < testsuite name = " integration " >
18- < directory >./tests/Integration/Client</ directory >
19- </ testsuite >
20- < testsuite name = " unit " >
21- <directory >tests/Unit /Client</directory >
22- </ testsuite >
23- </ testsuites >
24- <php >
25- <ini name =" error_reporting" value =" E_ALL" />
26- </php >
11+ < testsuites >
12+ < testsuite name = " unit " >
13+ <directory >tests/Unit/Client </directory >
14+ </ testsuite >
15+ < testsuite name = " integration " >
16+ < directory >tests/Integration/Client</ directory >
17+ </ testsuite >
18+ </ testsuites >
19+ <source >
20+ < include >
21+ <directory >src /Client</directory >
22+ </ include >
23+ </ source >
24+ <php >
25+ <ini name =" error_reporting" value =" E_ALL" />
26+ </php >
2727</phpunit >
You can’t perform that action at this time.
0 commit comments