Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Created TestModuleContext. #459

Closed
wants to merge 4 commits into from
Closed

Created TestModuleContext. #459

wants to merge 4 commits into from

Conversation

phenaproxima
Copy link

@phenaproxima phenaproxima commented Feb 3, 2018

Requires jhedstrom/DrupalDriver#164.

This adds a new context, TestModuleContext, which allows scenarios to automatically enable a module or set of modules before they start, then automatically uninstall those modules after the scenario is completed. This brings the paradigm of test modules, used extensively in Drupal core, to Behat.

To use it, a scenario (or feature) can add tags of the format @with-module:MODULENAME, and the module MODULENAME will be installed before the scenario, and uninstalled afterwards.

This is already implemented (and works!) over in acquia/lightning-dev.

@jhedstrom
Copy link
Owner

The tests are failing due to some coding standard issues, and also passing before scenario contexts to after scenario hooks (or the other way around). Should be a pretty quick fix I think.

@jhedstrom jhedstrom deleted the branch jhedstrom:master December 13, 2023 17:23
@jhedstrom jhedstrom closed this Dec 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants