Skip to content

Commit 696de46

Browse files
committed
use xmp file to configure phpunit coverage
1 parent c03c575 commit 696de46

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

tests/phpunit/phpunit.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
<php>
44
<const name="CYPHT_PHPUNIT_TEST_MODE" value="phpunit"/>
55
</php>
6+
<coverage>
7+
<report>
8+
<clover outputFile="clover.xml"/>
9+
</report>
10+
</coverage>
611
<testsuites>
712
<testsuite name="session">
813
<file>./session.php</file>

tests/phpunit/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,5 @@ else
4242
exit 1
4343
fi
4444

45-
phpunit --bootstrap vendor/autoload.php --configuration ${SCRIPT_DIR}/phpunit.xml --coverage-clover clover.xml --testdox $@
45+
phpunit --bootstrap vendor/autoload.php --configuration ${SCRIPT_DIR}/phpunit.xml --testdox $@
4646
coverage-check clover.xml 100

0 commit comments

Comments
 (0)