setono / sylius-behat-pack
A pack that installs everything you need to run behat tests on Sylius plugin or app
Installs: 43 939
Dependents: 14
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 1
Open Issues: 2
Requires
- behat/behat: ^3.8
- behat/mink-selenium2-driver: ^1.4
- dmore/behat-chrome-extension: ^1.3
- dmore/chrome-mink-driver: ^2.7
- friends-of-behat/mink: ^1.9
- friends-of-behat/mink-browserkit-driver: ^1.5
- friends-of-behat/mink-debug-extension: ^2.0
- friends-of-behat/mink-extension: ^2.5
- friends-of-behat/page-object-extension: ^0.3.2
- friends-of-behat/suite-settings-extension: ^1.1
- friends-of-behat/symfony-extension: ^2.2
- friends-of-behat/variadic-extension: ^1.4
- symfony/browser-kit: ^4.4 || ^5.0 || ^6.0
Requires (Dev)
- ergebnis/composer-normalize: ^2.13
This package is auto-updated.
Last update: 2024-12-17 23:40:30 UTC
README
A collection of libraries you need to run behat tests on Sylius plugin or app
$ composer require --dev setono/sylius-behat-pack
Preparing environment for testing with JS enabled
-
Chromedriver
-
Install:
https://sites.google.com/a/chromium.org/chromedriver/downloads
# platform options: linux32, linux64, mac64, win32 PLATFORM=mac64 VERSION=$(curl http://chromedriver.storage.googleapis.com/LATEST_RELEASE) cd /tmp curl http://chromedriver.storage.googleapis.com/$VERSION/chromedriver_$PLATFORM.zip > chromedriver.zip unzip -o chromedriver.zip chmod +x chromedriver mv chromedriver /usr/local/bin/chromedriver rm chromedriver.zip chromedriver -v
-
Run:
chromedriver > /dev/null 2>&1 &
-
-
Selenium
-
Install:
curl http://selenium-release.storage.googleapis.com/3.4/selenium-server-standalone-3.4.0.jar > /usr/local/bin/selenium.jar
-
Run:
java -Dwebdriver.chrome.driver=/usr/local/bin/chromedriver -jar /usr/local/bin/selenium.jar > /dev/null 2>&1 &
-
-
Webserver
-
Install
symfony
cli:curl -sS https://get.symfony.com/cli/installer | bash mv ~/.symfony/bin/symfony /usr/local/bin/symfony symfony -v
-
Run webserver with test environment:
# App APP_ENV=test symfony server:start --port=8080 --daemon # Plugin (cd tests/Application && APP_ENV=test symfony server:start --port=8080 --daemon)
-