GithubHelp home page GithubHelp logo

agiza / drupalextension Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jhedstrom/drupalextension

0.0 2.0 0.0 3.28 MB

An integration layer between Behat, Mink Extension, and Drupal.

License: GNU General Public License v2.0

PHP 100.00%

drupalextension's Introduction

Behat Drupal Extension

The Drupal Extension is an integration layer between Behat, Mink Extension, and Drupal. It provides step definitions for common testing scenarios specific to Drupal sites.

Build Status

The Drupal Extension 3.0 supports Drupal 7 and 8, and utilizes Behat 3. For Drupal 6 support (or Behat 2), use the 1.0 version.

Latest Stable Version Total Downloads Latest Unstable Version License Scrutinizer Code Quality

Use it for testing your Drupal site.

If you're new to the Drupal Extension, we recommend starting with the Full documentation

Quick start

  1. Install using Composer:

    mkdir projectdir
    cd projectdir
    curl -sS https://getcomposer.org/installer | php
    php composer.phar require drupal/drupal-extension='~3.0'
  2. In the projectdir, create a file called behat.yml. Below is the minimal configuration. Many more options are covered in the Full documentation

default:
  suites:
    default:
      contexts:
        - Drupal\DrupalExtension\Context\DrupalContext
  extensions:
    Behat\MinkExtension:
      goutte: ~
      base_url: http://example.org/  # Replace with your site's URL
    Drupal\DrupalExtension:
      blackbox: ~
  1. In the projectdir, run

    bin/behat --init
  2. Find pre-defined steps to work with using:

    bin/behat -di
  3. Define your own steps in projectdir\features\FeatureContext.php

  4. Start adding your feature files to the features directory of your repository.

Additional resources

Examples and code snippets

drupalextension's People

Contributors

jhedstrom avatar eliza411 avatar ademarco avatar cboyden avatar lotyrin avatar pfrenssen avatar clemens-tolboom avatar berdir avatar stof avatar grasmash avatar tayzlor avatar tizzo avatar stopfstedt avatar amitaibu avatar unn avatar tanarurkerem avatar heymp avatar mikelohmann avatar swichers avatar redndahead avatar algorgeous avatar jurgenhaas avatar lsolesen avatar gobilo avatar bboshnakov avatar iameap avatar omissis avatar

Watchers

James Cloos avatar Anthony Giza 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.