From 3cbcc59827369bb72435270f998714c899e62380 Mon Sep 17 00:00:00 2001 From: Marco Stoll Date: Tue, 25 Jun 2019 15:04:23 +0200 Subject: [PATCH] [FEATURE] add phpunit code coverage --- .gitignore | 1 + bin/phpdox.bat | 2 ++ bin/phpunit-codecoverage.bat | 3 +++ phpdox.xml | 3 +-- tests/testsuite.xml | 5 +++++ 5 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 bin/phpdox.bat create mode 100644 bin/phpunit-codecoverage.bat diff --git a/.gitignore b/.gitignore index a46da7c..06e6e46 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ .idea/ /build +/logs /vendor composer.lock \ No newline at end of file diff --git a/bin/phpdox.bat b/bin/phpdox.bat new file mode 100644 index 0000000..34b9bc3 --- /dev/null +++ b/bin/phpdox.bat @@ -0,0 +1,2 @@ +@ECHO OFF +vendor\bin\phpdox -f phpdox.xml \ No newline at end of file diff --git a/bin/phpunit-codecoverage.bat b/bin/phpunit-codecoverage.bat new file mode 100644 index 0000000..86beffe --- /dev/null +++ b/bin/phpunit-codecoverage.bat @@ -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 \ No newline at end of file diff --git a/phpdox.xml b/phpdox.xml index b1af03a..e90d769 100644 --- a/phpdox.xml +++ b/phpdox.xml @@ -103,11 +103,10 @@ - diff --git a/tests/testsuite.xml b/tests/testsuite.xml index 55cb830..49275a9 100644 --- a/tests/testsuite.xml +++ b/tests/testsuite.xml @@ -5,4 +5,9 @@ ./ + + + ../src/ + + \ No newline at end of file