Moved the PHPUnit settings

This commit is contained in:
Cédric Belin
2019-04-11 22:21:34 +02:00
parent 4408368977
commit 605f47177a
2 changed files with 5 additions and 5 deletions

View File

@ -63,7 +63,7 @@ class RoboFile extends Tasks {
* @return Result The task result. * @return Result The task result.
*/ */
function test(): Result { function test(): Result {
return $this->taskPhpUnit()->run(); return $this->_exec('phpunit --configuration=test/phpunit.xml');
} }
/** /**

View File

@ -1,18 +1,18 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<phpunit bootstrap="vendor/autoload.php" cacheResult="false"> <phpunit bootstrap="../vendor/autoload.php" cacheResult="false">
<filter> <filter>
<whitelist processUncoveredFilesFromWhitelist="true"> <whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">src</directory> <directory suffix=".php">../src</directory>
</whitelist> </whitelist>
</filter> </filter>
<logging> <logging>
<log type="coverage-clover" target="var/coverage.xml"/> <log type="coverage-clover" target="../var/coverage.xml"/>
</logging> </logging>
<testsuites> <testsuites>
<testsuite name="all"> <testsuite name="all">
<directory>test</directory> <directory>../test</directory>
</testsuite> </testsuite>
</testsuites> </testsuites>
</phpunit> </phpunit>