GithubHelp home page GithubHelp logo

pparitam / behat-multi-lingual Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 136.87 MB

License: GNU General Public License v2.0

PHP 81.22% CSS 2.62% Less 0.01% HTML 6.17% Shell 0.13% JavaScript 7.35% Twig 2.30% Gherkin 0.19%

behat-multi-lingual's Introduction

Behat Test Execution for Drupal8+MAMP Project

Behat Drupal Extension

Behat Drupal Extension extends the popular Behat Drupal Extension in order to provide the following features:

  • Additional step definitions covering contributed modules, core functionality and popular third-party plugins.
  • Contexts can access the global Behat service container.
  • Developers can organize their test using dependency injection by declaring their services in a YAML file and/or override default Behat services.
  • Developers can override Drupal driver core classes and allow their step definitions to run transparently on different Drupal core versions.

For more information please check the documentation.

Mink

Mink is a browser emulators abstraction layer.

It defines a basic API through which you can talk with specific browser emulator libraries.

Mink drivers define a bridge between Mink and those libraries.

Test Execution Steps:

  1. Clone this repo/project which has all the drupal and behat dependencies

  2. Move all the child directories of this project(from "core" directory till web.config file) under your MAMP server location (/Applications/MAMP/htdocs) (Prerequisite : MAMP/WAMP/LAMP should be installed in your device) -- To install mamp in your device please refer site.

  3. Run composer install (Prerequisite-composer should be install in your device) -- To install composer in your device please refer documentation.

  4. Setup the site on your local machine

  5. update local site url in the behat.yml file for all the profiles, placed in your project root directory. site url is added for the: "Drupal\MinkExtension"

default:
  suites:
    ...
  formatters:
    ...
  extensions:
    Drupal\MinkExtension:
      ...
      base_url: http://localhost:8888
      ...
  1. Execute your all behat tests from /Applications/MAMP/htdocs in browser mode
vendor/bin/behat

or to execute test in headless mode

vendor/bin/behat --profile="headless"

Note: 8_deleteTestMedia.feature is added only to delete dummy media from the application generated due to file upload behat scenario.

behat-multi-lingual's People

Contributors

pparitam avatar

Stargazers

 avatar

Watchers

 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.