Skip to content

Commit

Permalink
Update pcov unit test coverage config
Browse files Browse the repository at this point in the history
Exclude AtoM's docker directory from pcov unit test coverage report. Add
pcov option to ensure all folders are scanned for unit test coverage
(plugin folder tests were not being discovered).
  • Loading branch information
sbreker committed Jul 25, 2024
1 parent 79c9d3a commit 10c8999
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
},
"scripts": {
"test": "phpunit",
"test-cov": "@php -dpcov.enabled=1 ./vendor/composer/bin/phpunit --coverage-html=.coverage/html",
"test-cov": "@php -dpcov.enabled=1 -dpcov.directory=. ./vendor/composer/bin/phpunit --coverage-html=.coverage/html",
"php-cs-fixer": "php-cs-fixer"
}
}
1 change: 1 addition & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<directory suffix=".php">cache</directory>
<directory suffix=".php">test</directory>
<directory suffix=".php">vendor</directory>
<directory suffix=".php">docker</directory>
</exclude>
</coverage>
</phpunit>

0 comments on commit 10c8999

Please sign in to comment.