PHP Bitten tools
12 December 2009
10:57
as Text only
Some testing stuff - should work with comments cleaned/removed.
| 1 | <step id="Unit-Tests" description="Tests and Code-Coverage analysis"> |
|---|---|
| 2 | <sh:exec executable="${php.phpunit}" |
| 3 | args="--coverage-clover coverage.xml --log-xml results.xml Foo/tests/AllTests.php" /> |
| 4 | |
| 5 | <!-- Doing the unittests with PHP's phing (== invoking PHPUnit on the commandline) |
| 6 | and storing the resultfiles in the builds/orm/reports/${revision}-folder: |
| 7 | --> |
| 8 | <!-- <php:phing file="build.xml" |
| 9 | executable="${php.phing}" |
| 10 | args="-Dpath=${path} -Drevision=${revision} -quiet code-coverage" |
| 11 | target="compile"/> --> |
| 12 | |
| 13 | <!-- Invoking the phpunit-command from phptools.py with the given results-XML-file --> |
| 14 | <php:phpunit file="results.xml"/> |
| 15 | |
| 16 | <!-- Invoking the coverage-command from phptools.py with the coverage-XML-file |
| 17 | and limiting the rendering to files in /classes/ only --> |
| 18 | <php:coverage file="coverage.xml"/> |
| 19 | </step> |
Comments
No comments so far.
