Преглед изворни кода

#37 - phpunit config file enhancements

Alex Trofimov пре 12 година
родитељ
комит
9dde4bbb8c
2 измењених фајлова са 12 додато и 1 уклоњено
  1. 1 0
      .gitignore
  2. 11 1
      tests/phpunit.xml

+ 1 - 0
.gitignore

@@ -1,4 +1,5 @@
 # Exclude system cache folders
+packages/*
 cache/*
 cache_public/*
 tmp/*

+ 11 - 1
tests/phpunit.xml

@@ -1,7 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
 <phpunit bootstrap="bootstrap.php">
   <testsuites>
     <testsuite name="AllTests">
-      <directory>units</directory>
+      <directory>./units</directory>
     </testsuite>
   </testsuites>
+  <filter>
+    <whitelist processUncoveredFilesFromWhitelist="false">
+      <directory suffix=".php">./../inc/</directory>
+    </whitelist>
+  </filter>
+  <logging>
+    <log type="coverage-clover" target="../logs/clover.xml"/>
+    <log type="junit" target="./../logs/junit.xml" />
+  </logging>
 </phpunit>