Merge pull request #2026 from nelmio/GuilhemN-patch-1

Compute coverage with PHPUnit
This commit is contained in:
Guilhem Niot 2022-09-03 12:48:54 +02:00 committed by GitHub
commit a17ad38cc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 4 deletions

View File

@ -49,7 +49,7 @@ jobs:
with:
php-version: "${{ matrix.php-version }}"
tools: composer
coverage: "none"
coverage: pcov
- name: Get composer cache directory
id: composercache
@ -78,5 +78,5 @@ jobs:
composer global require --no-progress --no-scripts --no-plugins symfony/flex
composer update --no-interaction --no-progress ${{ matrix.composer-flags }}
- name: "Run PHPUnit"
run: "./phpunit"
- name: PHPUnit Tests
run: vendor/bin/simple-phpunit --configuration phpunit.xml.dist --coverage-text

View File

@ -37,7 +37,6 @@ use PHPUnit\Framework\TestCase;
* @covers \Nelmio\ApiDocBundle\OpenApiPhp\Util::mergeTyped
* @covers \Nelmio\ApiDocBundle\OpenApiPhp\Util::mergeProperty
* @covers \Nelmio\ApiDocBundle\OpenApiPhp\Util::getNestingIndexes
* @covers \Nelmio\ApiDocBundle\OpenApiPhp\Util::getNesting
*/
class UtilTest extends TestCase
{