mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 09:02:12 +00:00
Improved Behat configuration
This commit is contained in:
parent
7890296635
commit
42db44ce85
2 changed files with 45 additions and 47 deletions
|
|
@ -57,10 +57,11 @@ $ php app/console doctrine:database:create --env=test
|
||||||
$ php app/console doctrine:schema:create --env=test
|
$ php app/console doctrine:schema:create --env=test
|
||||||
```
|
```
|
||||||
|
|
||||||
You can run Behat using the following command:
|
You can run Behat using the following commands:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ bin/behat
|
$ bin/behat # In order to run tests which don't need JS support
|
||||||
|
$ bin/behat -p javascript # In order to run tests which need JS support
|
||||||
```
|
```
|
||||||
|
|
||||||
Troubleshooting
|
Troubleshooting
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ default:
|
||||||
- Sylius\Bundle\MoneyBundle\Behat\MoneyContext
|
- Sylius\Bundle\MoneyBundle\Behat\MoneyContext
|
||||||
- Sylius\Bundle\ChannelBundle\Behat\ChannelContext
|
- Sylius\Bundle\ChannelBundle\Behat\ChannelContext
|
||||||
filters:
|
filters:
|
||||||
tags: "@account && ~@javascript"
|
tags: "@account"
|
||||||
|
|
||||||
addressing:
|
addressing:
|
||||||
contexts:
|
contexts:
|
||||||
|
|
@ -36,7 +36,7 @@ default:
|
||||||
- Sylius\Bundle\MoneyBundle\Behat\MoneyContext
|
- Sylius\Bundle\MoneyBundle\Behat\MoneyContext
|
||||||
- Sylius\Bundle\ChannelBundle\Behat\ChannelContext
|
- Sylius\Bundle\ChannelBundle\Behat\ChannelContext
|
||||||
filters:
|
filters:
|
||||||
tags: "@addressing && ~@javascript"
|
tags: "@addressing"
|
||||||
|
|
||||||
cart:
|
cart:
|
||||||
contexts:
|
contexts:
|
||||||
|
|
@ -49,7 +49,7 @@ default:
|
||||||
- Sylius\Bundle\MoneyBundle\Behat\MoneyContext
|
- Sylius\Bundle\MoneyBundle\Behat\MoneyContext
|
||||||
- Sylius\Bundle\ChannelBundle\Behat\ChannelContext
|
- Sylius\Bundle\ChannelBundle\Behat\ChannelContext
|
||||||
filters:
|
filters:
|
||||||
tags: "@cart && ~@javascript"
|
tags: "@cart"
|
||||||
|
|
||||||
checkout:
|
checkout:
|
||||||
contexts:
|
contexts:
|
||||||
|
|
@ -65,7 +65,7 @@ default:
|
||||||
- Sylius\Bundle\MoneyBundle\Behat\MoneyContext
|
- Sylius\Bundle\MoneyBundle\Behat\MoneyContext
|
||||||
- Sylius\Bundle\ChannelBundle\Behat\ChannelContext
|
- Sylius\Bundle\ChannelBundle\Behat\ChannelContext
|
||||||
filters:
|
filters:
|
||||||
tags: "@checkout && ~@javascript"
|
tags: "@checkout"
|
||||||
|
|
||||||
contact:
|
contact:
|
||||||
contexts:
|
contexts:
|
||||||
|
|
@ -78,7 +78,7 @@ default:
|
||||||
- Sylius\Bundle\ContactBundle\Behat\ContactContext
|
- Sylius\Bundle\ContactBundle\Behat\ContactContext
|
||||||
- Sylius\Bundle\ChannelBundle\Behat\ChannelContext
|
- Sylius\Bundle\ChannelBundle\Behat\ChannelContext
|
||||||
filters:
|
filters:
|
||||||
tags: "@contact && ~@javascript"
|
tags: "@contact"
|
||||||
|
|
||||||
currencies:
|
currencies:
|
||||||
contexts:
|
contexts:
|
||||||
|
|
@ -92,7 +92,7 @@ default:
|
||||||
- Sylius\Bundle\WebBundle\Behat\WebContext
|
- Sylius\Bundle\WebBundle\Behat\WebContext
|
||||||
- Sylius\Bundle\ChannelBundle\Behat\ChannelContext
|
- Sylius\Bundle\ChannelBundle\Behat\ChannelContext
|
||||||
filters:
|
filters:
|
||||||
tags: "@currencies && ~@javascript"
|
tags: "@currencies"
|
||||||
|
|
||||||
dashboard:
|
dashboard:
|
||||||
contexts:
|
contexts:
|
||||||
|
|
@ -105,7 +105,7 @@ default:
|
||||||
- Sylius\Bundle\MoneyBundle\Behat\MoneyContext
|
- Sylius\Bundle\MoneyBundle\Behat\MoneyContext
|
||||||
- Sylius\Bundle\ChannelBundle\Behat\ChannelContext
|
- Sylius\Bundle\ChannelBundle\Behat\ChannelContext
|
||||||
filters:
|
filters:
|
||||||
tags: "@dashboard && ~@javascript"
|
tags: "@dashboard"
|
||||||
|
|
||||||
homepage:
|
homepage:
|
||||||
contexts:
|
contexts:
|
||||||
|
|
@ -116,7 +116,7 @@ default:
|
||||||
- Sylius\Bundle\MoneyBundle\Behat\MoneyContext
|
- Sylius\Bundle\MoneyBundle\Behat\MoneyContext
|
||||||
- Sylius\Bundle\ChannelBundle\Behat\ChannelContext
|
- Sylius\Bundle\ChannelBundle\Behat\ChannelContext
|
||||||
filters:
|
filters:
|
||||||
tags: "@homepage && ~@javascript"
|
tags: "@homepage"
|
||||||
|
|
||||||
inventory:
|
inventory:
|
||||||
contexts:
|
contexts:
|
||||||
|
|
@ -129,7 +129,7 @@ default:
|
||||||
- Sylius\Bundle\MoneyBundle\Behat\MoneyContext
|
- Sylius\Bundle\MoneyBundle\Behat\MoneyContext
|
||||||
- Sylius\Bundle\ChannelBundle\Behat\ChannelContext
|
- Sylius\Bundle\ChannelBundle\Behat\ChannelContext
|
||||||
filters:
|
filters:
|
||||||
tags: "@inventory && ~@javascript"
|
tags: "@inventory"
|
||||||
|
|
||||||
localization:
|
localization:
|
||||||
contexts:
|
contexts:
|
||||||
|
|
@ -141,7 +141,7 @@ default:
|
||||||
- Sylius\Bundle\MoneyBundle\Behat\MoneyContext
|
- Sylius\Bundle\MoneyBundle\Behat\MoneyContext
|
||||||
- Sylius\Bundle\ChannelBundle\Behat\ChannelContext
|
- Sylius\Bundle\ChannelBundle\Behat\ChannelContext
|
||||||
filters:
|
filters:
|
||||||
tags: "@localization && ~@javascript"
|
tags: "@localization"
|
||||||
|
|
||||||
oauth:
|
oauth:
|
||||||
contexts:
|
contexts:
|
||||||
|
|
@ -167,7 +167,7 @@ default:
|
||||||
- Sylius\Bundle\MoneyBundle\Behat\MoneyContext
|
- Sylius\Bundle\MoneyBundle\Behat\MoneyContext
|
||||||
- Sylius\Bundle\ChannelBundle\Behat\ChannelContext
|
- Sylius\Bundle\ChannelBundle\Behat\ChannelContext
|
||||||
filters:
|
filters:
|
||||||
tags: "@orders && ~@javascript"
|
tags: "@orders"
|
||||||
|
|
||||||
payments:
|
payments:
|
||||||
contexts:
|
contexts:
|
||||||
|
|
@ -180,7 +180,7 @@ default:
|
||||||
- Sylius\Bundle\MoneyBundle\Behat\MoneyContext
|
- Sylius\Bundle\MoneyBundle\Behat\MoneyContext
|
||||||
- Sylius\Bundle\ChannelBundle\Behat\ChannelContext
|
- Sylius\Bundle\ChannelBundle\Behat\ChannelContext
|
||||||
filters:
|
filters:
|
||||||
tags: "@payments && ~@javascript"
|
tags: "@payments"
|
||||||
|
|
||||||
pricing:
|
pricing:
|
||||||
contexts:
|
contexts:
|
||||||
|
|
@ -195,7 +195,7 @@ default:
|
||||||
- Sylius\Bundle\WebBundle\Behat\WebContext
|
- Sylius\Bundle\WebBundle\Behat\WebContext
|
||||||
- Sylius\Bundle\ChannelBundle\Behat\ChannelContext
|
- Sylius\Bundle\ChannelBundle\Behat\ChannelContext
|
||||||
filters:
|
filters:
|
||||||
tags: "@pricing && ~@javascript"
|
tags: "@pricing"
|
||||||
|
|
||||||
products:
|
products:
|
||||||
contexts:
|
contexts:
|
||||||
|
|
@ -210,7 +210,7 @@ default:
|
||||||
- Sylius\Bundle\WebBundle\Behat\WebContext
|
- Sylius\Bundle\WebBundle\Behat\WebContext
|
||||||
- Sylius\Bundle\ChannelBundle\Behat\ChannelContext
|
- Sylius\Bundle\ChannelBundle\Behat\ChannelContext
|
||||||
filters:
|
filters:
|
||||||
tags: "@products && ~@javascript"
|
tags: "@products"
|
||||||
|
|
||||||
promotions:
|
promotions:
|
||||||
contexts:
|
contexts:
|
||||||
|
|
@ -227,7 +227,7 @@ default:
|
||||||
- Sylius\Bundle\MoneyBundle\Behat\MoneyContext
|
- Sylius\Bundle\MoneyBundle\Behat\MoneyContext
|
||||||
- Sylius\Bundle\ChannelBundle\Behat\ChannelContext
|
- Sylius\Bundle\ChannelBundle\Behat\ChannelContext
|
||||||
filters:
|
filters:
|
||||||
tags: "@promotions && ~@javascript"
|
tags: "@promotions"
|
||||||
|
|
||||||
reports:
|
reports:
|
||||||
contexts:
|
contexts:
|
||||||
|
|
@ -244,7 +244,7 @@ default:
|
||||||
- Sylius\Bundle\MoneyBundle\Behat\MoneyContext
|
- Sylius\Bundle\MoneyBundle\Behat\MoneyContext
|
||||||
- Sylius\Bundle\ChannelBundle\Behat\ChannelContext
|
- Sylius\Bundle\ChannelBundle\Behat\ChannelContext
|
||||||
filters:
|
filters:
|
||||||
tags: "@reports && ~@javascript"
|
tags: "@reports"
|
||||||
|
|
||||||
settings:
|
settings:
|
||||||
contexts:
|
contexts:
|
||||||
|
|
@ -255,7 +255,7 @@ default:
|
||||||
- Sylius\Bundle\MoneyBundle\Behat\MoneyContext
|
- Sylius\Bundle\MoneyBundle\Behat\MoneyContext
|
||||||
- Sylius\Bundle\ChannelBundle\Behat\ChannelContext
|
- Sylius\Bundle\ChannelBundle\Behat\ChannelContext
|
||||||
filters:
|
filters:
|
||||||
tags: "@settings && ~@javascript"
|
tags: "@settings"
|
||||||
|
|
||||||
shipping:
|
shipping:
|
||||||
contexts:
|
contexts:
|
||||||
|
|
@ -272,7 +272,7 @@ default:
|
||||||
- Sylius\Bundle\MoneyBundle\Behat\MoneyContext
|
- Sylius\Bundle\MoneyBundle\Behat\MoneyContext
|
||||||
- Sylius\Bundle\ChannelBundle\Behat\ChannelContext
|
- Sylius\Bundle\ChannelBundle\Behat\ChannelContext
|
||||||
filters:
|
filters:
|
||||||
tags: "@shipping && ~@javascript"
|
tags: "@shipping"
|
||||||
|
|
||||||
taxation:
|
taxation:
|
||||||
contexts:
|
contexts:
|
||||||
|
|
@ -286,7 +286,7 @@ default:
|
||||||
- Sylius\Bundle\MoneyBundle\Behat\MoneyContext
|
- Sylius\Bundle\MoneyBundle\Behat\MoneyContext
|
||||||
- Sylius\Bundle\ChannelBundle\Behat\ChannelContext
|
- Sylius\Bundle\ChannelBundle\Behat\ChannelContext
|
||||||
filters:
|
filters:
|
||||||
tags: "@taxation && ~@javascript"
|
tags: "@taxation"
|
||||||
|
|
||||||
taxonomies:
|
taxonomies:
|
||||||
contexts:
|
contexts:
|
||||||
|
|
@ -299,7 +299,7 @@ default:
|
||||||
- Sylius\Bundle\MoneyBundle\Behat\MoneyContext
|
- Sylius\Bundle\MoneyBundle\Behat\MoneyContext
|
||||||
- Sylius\Bundle\ChannelBundle\Behat\ChannelContext
|
- Sylius\Bundle\ChannelBundle\Behat\ChannelContext
|
||||||
filters:
|
filters:
|
||||||
tags: "@taxonomies && ~@javascript"
|
tags: "@taxonomies"
|
||||||
|
|
||||||
users:
|
users:
|
||||||
contexts:
|
contexts:
|
||||||
|
|
@ -312,26 +312,7 @@ default:
|
||||||
- Sylius\Bundle\MoneyBundle\Behat\MoneyContext
|
- Sylius\Bundle\MoneyBundle\Behat\MoneyContext
|
||||||
- Sylius\Bundle\ChannelBundle\Behat\ChannelContext
|
- Sylius\Bundle\ChannelBundle\Behat\ChannelContext
|
||||||
filters:
|
filters:
|
||||||
tags: "@users && ~@javascript"
|
tags: "@users"
|
||||||
|
|
||||||
javascript:
|
|
||||||
contexts:
|
|
||||||
- Behat\MinkExtension\Context\MinkContext
|
|
||||||
- Sylius\Bundle\CoreBundle\Behat\HookContext
|
|
||||||
- Sylius\Bundle\AddressingBundle\Behat\AddressingContext
|
|
||||||
- Sylius\Bundle\CoreBundle\Behat\CoreContext
|
|
||||||
- Sylius\Bundle\MoneyBundle\Behat\MoneyContext
|
|
||||||
- Sylius\Bundle\PaymentBundle\Behat\PaymentContext
|
|
||||||
- Sylius\Bundle\ProductBundle\Behat\ProductContext
|
|
||||||
- Sylius\Bundle\PromotionBundle\Behat\PromotionContext
|
|
||||||
- Sylius\Bundle\ResourceBundle\Behat\FixtureContext
|
|
||||||
- Sylius\Bundle\ShippingBundle\Behat\ShippingContext
|
|
||||||
- Sylius\Bundle\TaxonomyBundle\Behat\TaxonomyContext
|
|
||||||
- Sylius\Bundle\TaxationBundle\Behat\TaxationContext
|
|
||||||
- Sylius\Bundle\WebBundle\Behat\WebContext
|
|
||||||
- Sylius\Bundle\ChannelBundle\Behat\ChannelContext
|
|
||||||
filters:
|
|
||||||
tags: "@javascript"
|
|
||||||
|
|
||||||
i18n:
|
i18n:
|
||||||
contexts:
|
contexts:
|
||||||
|
|
@ -347,7 +328,7 @@ default:
|
||||||
- Sylius\Bundle\ShippingBundle\Behat\ShippingContext
|
- Sylius\Bundle\ShippingBundle\Behat\ShippingContext
|
||||||
- Sylius\Bundle\ChannelBundle\Behat\ChannelContext
|
- Sylius\Bundle\ChannelBundle\Behat\ChannelContext
|
||||||
filters:
|
filters:
|
||||||
tags: "@i18n && ~@javascript"
|
tags: "@i18n"
|
||||||
|
|
||||||
search:
|
search:
|
||||||
contexts:
|
contexts:
|
||||||
|
|
@ -382,6 +363,7 @@ default:
|
||||||
- Sylius\Bundle\ChannelBundle\Behat\ChannelContext
|
- Sylius\Bundle\ChannelBundle\Behat\ChannelContext
|
||||||
filters:
|
filters:
|
||||||
tags: "@search_orm_only"
|
tags: "@search_orm_only"
|
||||||
|
|
||||||
channels:
|
channels:
|
||||||
contexts:
|
contexts:
|
||||||
- Behat\MinkExtension\Context\MinkContext
|
- Behat\MinkExtension\Context\MinkContext
|
||||||
|
|
@ -397,7 +379,7 @@ default:
|
||||||
- Sylius\Bundle\MoneyBundle\Behat\MoneyContext
|
- Sylius\Bundle\MoneyBundle\Behat\MoneyContext
|
||||||
- Sylius\Bundle\ChannelBundle\Behat\ChannelContext
|
- Sylius\Bundle\ChannelBundle\Behat\ChannelContext
|
||||||
filters:
|
filters:
|
||||||
tags: "@channels && ~@javascript"
|
tags: "@channels"
|
||||||
|
|
||||||
emails:
|
emails:
|
||||||
contexts:
|
contexts:
|
||||||
|
|
@ -410,7 +392,8 @@ default:
|
||||||
- Sylius\Bundle\MailerBundle\Behat\MailerContext
|
- Sylius\Bundle\MailerBundle\Behat\MailerContext
|
||||||
- Sylius\Bundle\ChannelBundle\Behat\ChannelContext
|
- Sylius\Bundle\ChannelBundle\Behat\ChannelContext
|
||||||
filters:
|
filters:
|
||||||
tags: "@emails && ~@javascript"
|
tags: "@emails"
|
||||||
|
|
||||||
security:
|
security:
|
||||||
contexts:
|
contexts:
|
||||||
- Behat\MinkExtension\Context\MinkContext
|
- Behat\MinkExtension\Context\MinkContext
|
||||||
|
|
@ -426,15 +409,29 @@ default:
|
||||||
- Sylius\Bundle\MoneyBundle\Behat\MoneyContext
|
- Sylius\Bundle\MoneyBundle\Behat\MoneyContext
|
||||||
- Sylius\Bundle\RbacBundle\Behat\RbacContext
|
- Sylius\Bundle\RbacBundle\Behat\RbacContext
|
||||||
filters:
|
filters:
|
||||||
tags: "@security && ~@javascript"
|
tags: "@security"
|
||||||
|
|
||||||
extensions:
|
extensions:
|
||||||
Behat\MinkExtension:
|
Behat\MinkExtension:
|
||||||
sessions:
|
sessions:
|
||||||
default:
|
default:
|
||||||
symfony2: ~
|
symfony2: ~
|
||||||
|
Behat\Symfony2Extension: ~
|
||||||
|
|
||||||
|
gherkin:
|
||||||
|
filters:
|
||||||
|
tags: "~@javascript"
|
||||||
|
|
||||||
|
javascript:
|
||||||
|
extensions:
|
||||||
|
Behat\MinkExtension:
|
||||||
|
base_url: # enter your base url here
|
||||||
|
sessions:
|
||||||
javascript:
|
javascript:
|
||||||
selenium2: ~
|
selenium2: ~
|
||||||
browser_name: firefox
|
browser_name: firefox
|
||||||
show_auto: false
|
show_auto: false
|
||||||
Behat\Symfony2Extension: ~
|
|
||||||
|
gherkin:
|
||||||
|
filters:
|
||||||
|
tags: "@javascript"
|
||||||
Loading…
Add table
Reference in a new issue