Skip to content

Commit

Permalink
feature #138 Allow to run PHPUnit without arguments and run Behat wit…
Browse files Browse the repository at this point in the history
…h strict mode on Travis CI (pamil)

This PR was merged into the 1.0-dev branch.

Discussion
----------



Commits
-------

e628fe8 Allow to run PHPUnit without arguments and run Behat with strict mode on Travis CI
  • Loading branch information
GSadee authored Jun 7, 2019
2 parents 6587360 + e628fe8 commit c5401bf
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ script:

- vendor/bin/phpunit tests/
- vendor/bin/phpspec run
- vendor/bin/behat -vvv --no-interaction || vendor/bin/behat -vvv --no-interaction --rerun
- vendor/bin/behat --strict -vvv --no-interaction || vendor/bin/behat --strict -vvv --no-interaction --rerun

after_failure:
- vendor/lakion/mink-debug-extension/travis/tools/upload-textfiles "${SYLIUS_BUILD_DIR}/*.log"
21 changes: 21 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>

<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/8.1/phpunit.xsd"
colors="true"
bootstrap="tests/Application/config/bootstrap.php">
<testsuites>
<testsuite name="SyliusInvoicingPlugin Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>

<php>
<ini name="error_reporting" value="-1" />

<env name="APP_ENV" value="test"/>
<env name="SHELL_VERBOSITY" value="-1" />

<server name="KERNEL_CLASS" value="Tests\Sylius\InvoicingPlugin\Application\Kernel" />
</php>
</phpunit>

0 comments on commit c5401bf

Please sign in to comment.