Skip to content

Latest commit

 

History

History
72 lines (46 loc) · 1.61 KB

CONTRIBUTE.md

File metadata and controls

72 lines (46 loc) · 1.61 KB

Contribute

Documentation

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.

Quickstart Installation

$ make start
$ make db-create
$ make db-update
$ make fixtures
$ make build

Usage

Running plugin tests

  • PHPUnit

    $ vendor/bin/phpunit
  • PHPSpec

    $ vendor/bin/phpspec run
  • Behat (non-JS scenarios)

    $ vendor/bin/behat --tags="~@javascript"
  • Behat (JS scenarios)

    1. Download Chromedriver

    2. Download Selenium Standalone Server.

    3. Run Selenium server with previously downloaded Chromedriver:

      $ java -Dwebdriver.chrome.driver=chromedriver -jar selenium-server-standalone.jar
    4. Run test application's webserver on localhost:8080:

      $ (cd tests/Application && bin/console server:run localhost:8080 -d public -e test)
    5. Run Behat:

      $ vendor/bin/behat --tags="@javascript"

Opening Sylius with your plugin

After installation and with docker containers running, go to http://0.0.0.0:9000/

Contribution

Learn more about our contribution workflow on http://docs.sylius.org/en/latest/contributing/.