aboutsummaryrefslogtreecommitdiff
path: root/phpunit.xml
diff options
context:
space:
mode:
authorn-peugnet <n.peugnet@free.fr>2020-04-16 18:46:32 +0200
committerVincent Peugnet <33429034+vincent-peugnet@users.noreply.github.com>2020-04-17 19:03:34 +0200
commit477f4bb4d104905e6c846c3cec2ec57edd4de677 (patch)
tree0a08404eee86edf9ee73573d96aaa2c1932ae8a7 /phpunit.xml
parent802f5135b0979bab3bf30ae1733f9867e2caed7a (diff)
downloadwcms-477f4bb4d104905e6c846c3cec2ec57edd4de677.tar.gz
wcms-477f4bb4d104905e6c846c3cec2ec57edd4de677.zip
tests: add phpunit w/coverage + 1 test SummaryTest
Diffstat (limited to 'phpunit.xml')
-rw-r--r--phpunit.xml23
1 files changed, 23 insertions, 0 deletions
diff --git a/phpunit.xml b/phpunit.xml
new file mode 100644
index 0000000..d13e9bf
--- /dev/null
+++ b/phpunit.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/6.3/phpunit.xsd"
+ bootstrap="vendor/autoload.php"
+ cacheResultFile="build/phpunit/result.cache"
+ colors="true">
+ <testsuites>
+ <testsuite name="tests">
+ <directory>tests</directory>
+ </testsuite>
+ </testsuites>
+
+ <logging>
+ <log type="coverage-text" target="php://stdout" />
+ <log type="coverage-clover" target="build/phpunit/cov.xml" />
+ </logging>
+
+ <filter>
+ <whitelist processUncoveredFilesFromWhitelist="true">
+ <directory suffix=".php">app/class</directory>
+ </whitelist>
+ </filter>
+</phpunit> \ No newline at end of file