Skip to content

Commit

Permalink
Simplify phpunit.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
rgomezcasas committed Feb 18, 2018
1 parent 8ad6d92 commit ccdb18d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 28 deletions.
27 changes: 0 additions & 27 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -23,38 +23,11 @@
verbose="false">

<testsuites>
<!--@todo To deprecate when all tests are moved to the new structure -->
<testsuite name="Infrastructure">
<directory>./src/Tests</directory>
</testsuite>
<!--@todo To deprecate when all tests are moved to the new structure -->
<testsuite name="Modules">
<directory>./src/*/Module/*/Tests</directory>
<directory>./src/Context/*/Module/*/Tests</directory>
</testsuite>
<testsuite name="Application">
<directory>./tests</directory>
</testsuite>
</testsuites>

<!--@todo To deprecate when all tests are moved to the new structure -->
<filter>
<whitelist>
<directory>./src/*</directory>
<directory>./applications/*/src</directory>
<exclude>
<directory>./applications/*/src/Test</directory>
<directory>./applications/*/src/Tests</directory>

<directory>./src/Tests</directory>
<directory>./src/Context/*/Module/*/Tests</directory>
<directory>./src/Context/*/Module/*/Test</directory>

<directory>./src/Shared/Test</directory>
</exclude>
</whitelist>
</filter>

<listeners>
<listener class="\Mockery\Adapter\Phpunit\TestListener"></listener>
</listeners>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ final class ConsoleContext implements Context
public function iRunTheApplicationConsole($app)
{
$command = './bin/console';
$applicationDirectory = sprintf('%s/../../applications/%s', __DIR__, $app);
$applicationDirectory = sprintf('%s/../../../../applications/%s', __DIR__, $app);

$this->runProcess(new Process($command, $applicationDirectory));
}
Expand Down

0 comments on commit ccdb18d

Please sign in to comment.