PHPackages                             nuvoleweb/drupal-behat - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. nuvoleweb/drupal-behat

ActiveBehat-extension[Testing &amp; Quality](/categories/testing)

nuvoleweb/drupal-behat
======================

Drupal Behat extension.

1.3.0(2y ago)33787.7k↓18.2%26[2 PRs](https://github.com/nuvoleweb/drupal-behat/pulls)3GPL-2.0+PHP

Since Oct 23Pushed 2y ago8 watchersCompare

[ Source](https://github.com/nuvoleweb/drupal-behat)[ Packagist](https://packagist.org/packages/nuvoleweb/drupal-behat)[ RSS](/packages/nuvoleweb-drupal-behat/feed)WikiDiscussions 1.x Synced 1mo ago

READMEChangelog (1)Dependencies (13)Versions (26)Used By (3)

Behat Drupal Extension
======================

[](#behat-drupal-extension)

[![Build Status](https://camo.githubusercontent.com/e0c7716706e6d3e44e717b92fc3bdb644cff37277f6211cd7abf6d10697e3503/68747470733a2f2f7472617669732d63692e6f72672f6e75766f6c657765622f64727570616c2d62656861742e7376673f6272616e63683d312e302e78)](https://travis-ci.org/nuvoleweb/drupal-behat)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/7e0d50f0517b1f08631aab01944e01e553a144d5be8a8ef1c95fad7724a60885/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6e75766f6c657765622f64727570616c2d62656861742f6261646765732f7175616c6974792d73636f72652e706e673f623d312e302e78)](https://scrutinizer-ci.com/g/nuvoleweb/drupal-behat/?branch=1.0.x)[![Latest Stable Version](https://camo.githubusercontent.com/b1aeb7f8d1a09252842fbe775040fa742d597e178ab1ede4f549d78394c7f04d/68747470733a2f2f706f7365722e707567782e6f72672f6e75766f6c657765622f64727570616c2d62656861742f762f737461626c65)](https://packagist.org/packages/nuvoleweb/drupal-behat)[![Latest Unstable Version](https://camo.githubusercontent.com/22ff639d0950d626bc7e283e82c30de8036a3782a2ec581ab01c5c8a5e53801c/68747470733a2f2f706f7365722e707567782e6f72672f6e75766f6c657765622f64727570616c2d62656861742f762f756e737461626c65)](https://packagist.org/packages/nuvoleweb/drupal-behat)[![Total Downloads](https://camo.githubusercontent.com/884a7e25caff65795c1386b7069cd1b0049c626dac825c6ec29f03385b17e264/68747470733a2f2f706f7365722e707567782e6f72672f6e75766f6c657765622f64727570616c2d62656861742f646f776e6c6f616473)](https://packagist.org/packages/nuvoleweb/drupal-behat)[![License](https://camo.githubusercontent.com/ea1a299603beb3e0946e41ca21511efd45a624c115bd0f64f39bbe47ccba5f8c/68747470733a2f2f706f7365722e707567782e6f72672f6e75766f6c657765622f64727570616c2d62656861742f6c6963656e7365)](https://packagist.org/packages/nuvoleweb/drupal-behat)

Nuvole's Behat Drupal Extension extends the popular [Behat Drupal Extension](https://www.drupal.org/project/drupalextension)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](https://github.com/nuvoleweb/drupal-behat/wiki/Documentation).

Installation and setup
----------------------

[](#installation-and-setup)

Install Nuvole's Behat Drupal Extension with [Composer](https://getcomposer.org/) by running:

```
$ composer require nuvoleweb/drupal-behat
```

Setup the extension by following the [Quick start](https://github.com/jhedstrom/drupalextension#quick-start) section available on the original Behat Drupal Extension page, just use `NuvoleWeb\Drupal\DrupalExtension` instead of the native `Drupal\DrupalExtension` in your `behat.yml` as shown below:

```
default:
  suites:
    default:
      contexts:
        - Drupal\DrupalExtension\Context\DrupalContext
        - NuvoleWeb\Drupal\DrupalExtension\Context\DrupalContext
        ...
  extensions:
    Behat\MinkExtension:
      goutte: ~
      ...
    # Use "NuvoleWeb\Drupal\DrupalExtension" instead of "Drupal\DrupalExtension".
    NuvoleWeb\Drupal\DrupalExtension:
      api_driver: "drupal"
      ...
      services: "tests/my_services.yml"
      text:
        node_submit_label: "Save and publish"
```

Extension settings
------------------

[](#extension-settings)

Nuvole's Behat Drupal Extension accepts all parameters of the original Behat Drupal Extension and it provides the following additional ones:

ParameterDescription`services: "tests/my_services.yml"`Path to your custom service definition YAML file.`text.node_submit_label: "Save and publish"`Label of node form submit button (different in Drupal 7/6 and Drupal 8).Additional resources
--------------------

[](#additional-resources)

- [Behat Drupal Extension documentation](https://behat-drupal-extension.readthedocs.org)
- [Behat documentation](http://docs.behat.org)
- [Mink documentation](http://mink.behat.org)
- [Drupal Behat group](http://groups.drupal.org/behat)

###  Health Score

47

—

FairBetter than 94% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity51

Moderate usage in the ecosystem

Community29

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~173 days

Recently: every ~426 days

Total

18

Last Release

921d ago

Major Versions

0.7.x-dev → 1.0.02016-09-19

0.8.x-dev → 1.1.02017-10-30

### Community

Maintainers

![](https://www.gravatar.com/avatar/8562a7045bde4094cf1252195ae47001970518ed7281b9e13caa6b6ffea03a5b?d=identicon)[ademarco](/maintainers/ademarco)

---

Top Contributors

[![ademarco](https://avatars.githubusercontent.com/u/153362?v=4)](https://github.com/ademarco "ademarco (104 commits)")[![bircher](https://avatars.githubusercontent.com/u/2198600?v=4)](https://github.com/bircher "bircher (80 commits)")[![vever001](https://avatars.githubusercontent.com/u/1317919?v=4)](https://github.com/vever001 "vever001 (19 commits)")[![omarlopesino](https://avatars.githubusercontent.com/u/3202817?v=4)](https://github.com/omarlopesino "omarlopesino (10 commits)")[![claudiu-cristea](https://avatars.githubusercontent.com/u/473868?v=4)](https://github.com/claudiu-cristea "claudiu-cristea (5 commits)")[![albeortev](https://avatars.githubusercontent.com/u/46744901?v=4)](https://github.com/albeortev "albeortev (5 commits)")[![davidmcgregor](https://avatars.githubusercontent.com/u/4916502?v=4)](https://github.com/davidmcgregor "davidmcgregor (2 commits)")[![Sweetchuck](https://avatars.githubusercontent.com/u/591103?v=4)](https://github.com/Sweetchuck "Sweetchuck (1 commits)")[![Eduardo-Morales-Alberti](https://avatars.githubusercontent.com/u/24698482?v=4)](https://github.com/Eduardo-Morales-Alberti "Eduardo-Morales-Alberti (1 commits)")[![carlosreig](https://avatars.githubusercontent.com/u/2478462?v=4)](https://github.com/carlosreig "carlosreig (1 commits)")[![AliagaDev](https://avatars.githubusercontent.com/u/10268016?v=4)](https://github.com/AliagaDev "AliagaDev (1 commits)")[![martijnhoutman](https://avatars.githubusercontent.com/u/1670677?v=4)](https://github.com/martijnhoutman "martijnhoutman (1 commits)")

---

Tags

testwebdrupalBehat

### Embed Badge

![Health badge](/badges/nuvoleweb-drupal-behat/health.svg)

```
[![Health](https://phpackages.com/badges/nuvoleweb-drupal-behat/health.svg)](https://phpackages.com/packages/nuvoleweb-drupal-behat)
```

###  Alternatives

[drupal/drupal-extension

Drupal extension for Behat

22215.1M147](/packages/drupal-drupal-extension)[friends-of-behat/mink-extension

Mink extension for Behat

14034.2M467](/packages/friends-of-behat-mink-extension)[drupal/drupal-driver

A collection of reusable Drupal drivers

6715.8M18](/packages/drupal-drupal-driver)[robertfausk/behat-panther-extension

Symfony Panther extension for Behat

341.7M87](/packages/robertfausk-behat-panther-extension)[acquia/drupal-spec-tool

A tool for specifying Drupal architecture details and generating automated tests for them

1532.6M3](/packages/acquia-drupal-spec-tool)[drupal/tqextension

Behat extension for testing Drupal sites

1134.4k](/packages/drupal-tqextension)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
