[FEATURE] add phpunit code coverage

This commit is contained in:
Marco Stoll 2019-06-25 15:04:23 +02:00
parent 73602b89a1
commit 3cbcc59827
5 changed files with 12 additions and 2 deletions

1
.gitignore vendored
View File

@ -1,5 +1,6 @@
.idea/
/build
/logs
/vendor
composer.lock

2
bin/phpdox.bat Normal file
View File

@ -0,0 +1,2 @@
@ECHO OFF
vendor\bin\phpdox -f phpdox.xml

View File

@ -0,0 +1,3 @@
@ECHO OFF
SET PROJECT_HOME=C:\dev\ffe\fastforward\Factories
php -dxdebug.coverage_enable=1 %PROJECT_HOME%\vendor\phpunit\phpunit\phpunit --coverage-xml %PROJECT_HOME%\logs\phpunit --configuration %PROJECT_HOME%\tests\testsuite.xml --teamcity

View File

@ -103,11 +103,10 @@
<!-- <coverage path="" /> -->
<!-- @path - the directory where the xml code coverage report can be found -->
<!--</source>-->
<!--
<source type="phpunit">
<filter directory="${phpDox.project.source}" />
<coverage path="../logs/phpunit" />
</source>
-->
</enrich>

View File

@ -5,4 +5,9 @@
<directory>./</directory>
</testsuite>
</testsuites>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">../src/</directory>
</whitelist>
</filter>
</phpunit>