For a comprehensive guide on Sylius Plugins development please go to Sylius documentation, there you will find the Plugin Development Guide, that is full of examples.
$ make start
$ make db-create
$ make db-update
$ make fixtures
$ make build
-
PHPUnit
$ vendor/bin/phpunit
-
PHPSpec
$ vendor/bin/phpspec run
-
Behat (non-JS scenarios)
$ vendor/bin/behat --tags="~@javascript"
-
Behat (JS scenarios)
-
Download Chromedriver
-
Download Selenium Standalone Server.
-
Run Selenium server with previously downloaded Chromedriver:
$ java -Dwebdriver.chrome.driver=chromedriver -jar selenium-server-standalone.jar
-
Run test application's webserver on
localhost:8080
:$ (cd tests/Application && bin/console server:run localhost:8080 -d public -e test)
-
Run Behat:
$ vendor/bin/behat --tags="@javascript"
-
After installation and with docker containers running, go to http://0.0.0.0:9000/
Learn more about our contribution workflow on http://docs.sylius.org/en/latest/contributing/.