Skip to content

Commit

Permalink
configure PHPUnit for code coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
stopfstedt committed Feb 13, 2024
1 parent d07af88 commit f4f66aa
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
/vendor/
.phpunit.cache
.phpcs-cache
html-coverage
15 changes: 15 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,19 @@
<directory>tests</directory>
</testsuite>
</testsuites>

<source>
<include>
<directory suffix=".php">src</directory>
</include>
</source>

<!-- un-comment the following block before running code coverage tests -->
<!--
<coverage>
<report>
<html outputDirectory="html-coverage" lowUpperBound="50" highLowerBound="90"/>
</report>
</coverage>
-->
</phpunit>

0 comments on commit f4f66aa

Please sign in to comment.