Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Sylius Behat Pack Laravel Package

setono/sylius-behat-pack

Dev pack for running Behat tests in Sylius apps and plugins. Pulls in common Behat/Mink tooling and documents a JS-enabled setup using Chromedriver, Selenium, and the Symfony CLI web server for test environments.

View on GitHub
Deep Wiki
Context7

Sylius Behat Pack

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:

      https://symfony.com/download

      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)
      
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky
spatie/mailcoach-vapor