This project is not covered by Drupal’s security advisory policy.
Gherkin Script adds a Gherkin media source to Drupal, so you can keep Gherkin/Cucumber feature scripts as reusable media items and edit them with syntax highlighting in the Ace Editor.
Features
- A Media source plugin for Gherkin scripts.
- A ready-to-use Feature media type with a Gherkin script field, including form and view displays for the Media Library.
- A dedicated Gherkin text format and editor configuration powered by Ace Editor.
- A vertically resizable editor area for longer scripts.
Requirements
- Drupal
^11.4 || ^12 - Core Media and Text Editor modules
- Ace Editor
^2.0.5, which requires the Ace library itself through vardot/ace.
No asset-packagist, npm-asset repositories or custom installer-paths are needed — Composer places the Ace library at web/libraries/ace through the standard type:drupal-library installer path.
Installation
ddev composer require drupal/gherkin
ddev drush en gherkin -y
For further information, see Installing Drupal Modules.
Configuration
After you enable the module, the Feature media type and the Gherkin text format are available. Adjust them under Structure » Media types and Configuration » Content authoring » Text formats and editors.
Usage
Add a Feature media item (Content » Media » Add media » Feature), or pick one from the Media Library, and write your Gherkin scenarios in the Ace-powered editor.
Project information
- Project categories: Developer tools
- Ecosystem: Cucumber
31 sites report using this module
- Created by rajab natshah on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.




