Coder Social home page Coder Social logo

symfony-behat's Introduction

Symfony - Behat

This project will init a Symfony project with Docker to run behat test

Requirements

  • Docker
  • Docker-compose
  • Make

Installation

  • Edit variable PROJECT_PORT port in .env
  • make .env.local
  • Edit your .env.local
  • bash make install or make reset :)

Execution modes

You can run test with

$ make behat

or

$ docker exec -t symfony_behat_php vendor/bin/behat

If you want to run specific test, add a tag before your scenario

@javascript @demo @tag
Scenario: This is an example

Then run with your tag,

$ docker exec -t symfony_behat_php vendor/bin/behat --tags demo

Browser

By default, the tests will execute with Chrome node.

Chrome Chrome

$ docker exec -t symfony_behat_php vendor/bin/behat --profile chrome

But you can execute with Firefox node

Firefox Firefox

$ docker exec -t symfony_behat_php vendor/bin/behat --profile firefox

Preview

This project integrates a test visualization (headless) with Selenium Grid

Selenium Grid

Go to Sessions on sidebar

Selenium Session

Then, you can have live preview thanks to VNC system

Selenium VNC

You can also record your test on .mp4 file in folder .docker/test/recording

To do that:

  • run your chrome or firefox video image
  • run test
  • stop chrome or firefox video image
  • wait a few minute and your video is ready !

symfony-behat's People

Stargazers

Kimouss avatar

Watchers

Kimouss avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.