Behat

Behat tests are executing scenarios within a browser. Do do so, you need a running YAWIK Installation, the virtual framebuffer xvfb and the selenium.

The framebuffer can be installed via apt-get install xvfb. Once installed it can be started by

/sbin/start-stop-daemon --start --quiet --pidfile /tmp/xvfb_99.pid --make-pidfile --background
    --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1680x1050x16

The “browser” is started via.

java -jar /home/cbleek/Projects/YAWIK/vendor/se/selenium-server-standalone/bin/selenium-server-standalone.jar \
      -Dwebdriver.chrome.driver=/usr/chromedriver

The tests itself are started.

APPLICATION_ENV=development ./vendor/bin/behat --strict \
    --no-interaction -vvv -f progress  --tags="@javascript && [email protected] && [email protected]"