Skip to content

Commit

Permalink
Use SymfonyExtension 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Zales0123 committed Jan 22, 2019
1 parent 9706601 commit 0368f6b
Show file tree
Hide file tree
Showing 8 changed files with 57 additions and 228 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@ jobs:
- bin/console sylius:fixtures:load --no-interaction --env=test_cached --no-debug -vvv

- echo "Testing (Behat, without javascript scenarios; ~@javascript && ~@todo && ~@cli)" "Sylius"
- vendor/bin/behat --strict --no-interaction -vvv -f progress -p cached --tags="~@javascript && ~@todo && ~@cli"
- vendor/bin/behat --strict --no-interaction -vvv -f progress --tags="~@javascript && ~@todo && ~@cli"

- echo "Testing (Behat, only javascript scenarios; @javascript && ~@todo && ~@cli)" "Sylius"
- vendor/bin/behat --strict --no-interaction -vvv -f progress -p cached --tags="@javascript && ~@todo && ~@cli" || vendor/bin/behat --strict --no-interaction -vvv -f progress -p cached --tags="@javascript && ~@todo && ~@cli" --rerun
- vendor/bin/behat --strict --no-interaction -vvv -f progress --tags="@javascript && ~@todo && ~@cli" || vendor/bin/behat --strict --no-interaction -vvv -f progress --tags="@javascript && ~@todo && ~@cli" --rerun

after_failure:
- vendor/lakion/mink-debug-extension/travis/tools/upload-textfiles "${SYLIUS_BUILD_DIR}/*.log"
Expand Down
36 changes: 2 additions & 34 deletions behat.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -3,41 +3,9 @@ imports:

default:
extensions:
FriendsOfBehat\ContextServiceExtension:
imports:
- "vendor/sylius/sylius/src/Sylius/Behat/Resources/config/services.xml"

Behat\MinkExtension:
files_path: "%paths.base%/vendor/sylius/sylius/src/Sylius/Behat/Resources/fixtures/"
FriendsOfBehat\SuiteSettingsExtension:
paths:
- "vendor/sylius/sylius/features"
- "features"

Behat\MinkExtension:
files_path: "%paths.base%/vendor/sylius/sylius/src/Sylius/Behat/Resources/fixtures/"

FriendsOfBehat\SymfonyExtension:
env_file: .env.test
kernel:
env: test
debug: true
class: App\Kernel
path: src/Kernel.php
bootstrap: ~

cached:
extensions:
FriendsOfBehat\ContextServiceExtension:
imports:
- "vendor/sylius/sylius/src/Sylius/Behat/Resources/config/services.xml"

Behat\MinkExtension:
files_path: "%paths.base%/vendor/sylius/sylius/src/Sylius/Behat/Resources/fixtures/"

FriendsOfBehat\SymfonyExtension:
env_file: .env.test_cached
kernel:
env: test_cached
debug: false
class: App\Kernel
path: src/Kernel.php
bootstrap: ~
7 changes: 2 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,9 @@
"behat/mink-browserkit-driver": "^1.3",
"behat/mink-extension": "^2.2",
"behat/mink-selenium2-driver": "^1.3",
"friends-of-behat/context-service-extension": "^1.2",
"friends-of-behat/cross-container-extension": "^1.1",
"friends-of-behat/page-object-extension": "^0.2.1",
"friends-of-behat/service-container-extension": "^1.0",
"friends-of-behat/page-object-extension": "^0.3",
"friends-of-behat/suite-settings-extension": "^1.0",
"friends-of-behat/symfony-extension": "^1.2.1",
"friends-of-behat/symfony-extension": "^2.0.0-rc.2",
"friends-of-behat/variadic-extension": "^1.1",
"lakion/mink-debug-extension": "^1.2.3",
"lchrusciel/api-test-case": "^3.0",
Expand Down
Loading

0 comments on commit 0368f6b

Please sign in to comment.