Skip to content

Commit

Permalink
Add separate phpunit config for travis
Browse files Browse the repository at this point in the history
  • Loading branch information
maxrice committed Sep 5, 2014
1 parent 8a6097b commit 5ac9253
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ matrix:
before_script:
- bash tests/install-wp-tests.sh woocommerce_test root '' localhost $WP_VERSION

script: phpunit
script: phpunit -c phpunit.xml.dist
28 changes: 28 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
bootstrap="tests/bootstrap.php"
backupGlobals="false"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
verbose="true"
>
<testsuites>
<testsuite name="WooCommerce Test Suite">
<directory suffix=".php">./tests/unit-tests</directory>
</testsuite>
</testsuites>
<filter>
<blacklist>
<directory suffix=".php">./apigen/</directory>
<directory suffix=".php">./i18n/</directory>
<directory suffix=".php">./templates/</directory>
<directory suffix=".php">./tests/</directory>
<directory suffix=".php">./tmp/</directory>
</blacklist>
</filter>
<logging>
<log type="coverage-clover" target="./tmp/clover.xml" charset="UTF-8" />
</logging>
</phpunit>

0 comments on commit 5ac9253

Please sign in to comment.