Skip to content
Browse files

Upgrade PHP_Coverage to 1.1.x and fixed phpunit configuration.

- PHP_Coverage 1.1.1
- Update README
  • Loading branch information...
1 parent 94fdacf commit d66eab960eeb501f9a0c70ec59c89b0b88d85d29 @sotarok committed Feb 20, 2012
Showing with 25 additions and 5 deletions.
  1. +2 −0 .gitignore
  2. +7 −2 README.rst
  3. +16 −2 phpunit.xml → phpunit.xml.dist
  4. +0 −1 test/bootstrap.php
View
2 .gitignore
@@ -1 +1,3 @@
tmp/
+build/
+phpunit.xml
View
9 README.rst
@@ -130,7 +130,12 @@ commit not to ``master`` branch but to ``develop`` branch.
Test
^^^^^^
-phpunit.xml is loaded automatically ::
+* PHPUnit >= 3.5
+* PHP_Coverage >= 1.1.0
+
+
+Copy phpunix.xml.dist to phpunit.xml and modify configurations if you need.
+Run command ```phpunit``` and then phpunit.xml is loaded automatically ::
$ phpunit
@@ -151,7 +156,7 @@ License
The BSD License
- Copyright (c) 2011, Sotaro Karasawa
+ Copyright (c) 2011-2012, Sotaro Karasawa
All rights reserved.
Redistribution and use in source and binary forms, with or without
View
18 phpunit.xml → phpunit.xml.dist
@@ -11,6 +11,8 @@
stopOnFailure="false"
stopOnIncomplete="false"
stopOnSkipped="false"
+ strict="true"
+ verbose="true"
>
<testsuites>
<testsuite name="Git_Daily">
@@ -19,8 +21,20 @@
</testsuite>
</testsuites>
<logging>
- <log type="coverage-html" target="tmp/report" charset="UTF-8"
- yui="true" highlight="true"
+ <log type="coverage-html" target="build/coverage" title="Git_Daily"
+ charset="UTF-8" yui="true" highlight="true"
lowUpperBound="35" highLowerBound="70"/>
+ <log type="coverage-clover" target="build/logs/clover.xml"/>
+ <log type="junit" target="build/logs/junit.xml" logIncompleteSkipped="false"/>
</logging>
+
+ <filter>
+ <whitelist addUncoveredFilesFromWhitelist="true">
+ <directory suffix=".php">src</directory>
+ <exclude>
+ <!-- <file>PHPUnit/Autoload.php</file> -->
+ <!-- <file>PHPUnit/Framework/Assert/Functions.php</file> -->
+ </exclude>
+ </whitelist>
+ </filter>
</phpunit>
View
1 test/bootstrap.php
@@ -7,4 +7,3 @@
define('GIT_DAILY_TEST_DIR', dirname(__FILE__));
define('GIT_DAILY_TMP_DIR' , dirname(__FILE__) . '/../tmp');
-PHP_CodeCoverage_Filter::getInstance()->addDirectoryToBlacklist(dirname(__FILE__));

0 comments on commit d66eab9

Please sign in to comment.
Something went wrong with that request. Please try again.