webship / cucumber
Cucumber Automated Functional Acceptance Testing Management system
Package info
Language:Gherkin
Type:drupal-profile
pkg:composer/webship/cucumber
Requires
- composer/installers: ~2
- drupal/core: ^11.4 || ^12
- drupal/core-composer-scaffold: ^11.4 || ^12
- drupal/cucumber_core: ^12.0.8
- drupal/cucumber_default_content: ~12.0
- drupal/cucumber_demos: ~12.0
- drupal/cucumber_recipes: ^12.0.5
- drupal/cucumber_user_roles: ^12.0.5
- drupal/uikit_admin: ~4.0
- drupal/webpatches: ~12.0
- drush/drush: ^13 || ^14
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
Replaces
None
- 12.0.x-dev
- 12.0.9
- 12.0.8
- 12.0.7
- 12.0.6
- 12.0.5
- 12.0.4
- 12.0.3
- 12.0.2
- 12.0.1
- 12.0.0
- 11.0.x-dev
- 10.0.x-dev
- 9.0.x-dev
- 9.0.0-alpha2
- 9.0.0-alpha1
- dev-8.x-1.x / 8.1.x-dev
- dev-3496354-site-template-installer
- dev-3496353-ddev-install-docs
- dev-3496352-installable
- dev-3496351-depend-on-stable-releases
- dev-3496350-move-to-the-web-12
- dev-3496349-drop-webtheme-admin
- dev-3496348-add-automated-functional-testing-with
- dev-3496347-rewrite-the-readme
- dev-3496346-report-the-profile-requirements-without
- dev-3496345-let-every-signed-in-user
- dev-3496344-grant-the-admin-role-its
- dev-3496343-stop-installing-the-action-ui
- dev-3496342-support-drupal-core-11-4
- dev-3496341-drop-asset-packagist
- dev-3496339-gitlab-github-templates-9.0.x
- dev-3496339-gitlab-github-templates-10.0.x
- dev-3496339-gitlab-github-templates-11.0.x
This package is auto-updated.
Last update: 2026-11-18 18:11:58 UTC
README
A Drupal installation profile for managing automated functional acceptance testing: features written as Gherkin scripts, organised in directories, with dashboards for each team role.
Table of contents
- Features
- Requirements
- Installation
- Usage
- Testing
Features
- A "Feature" media type that stores a Gherkin script, edited with the Ace editor (Gherkin Script).
- A features page, a feature directory and default and admin dashboards (Cucumber Core).
- Optional user roles, each with its own dashboard (Cucumber User Roles).
- Products, components and projects recipes (Cucumber Recipes), and optional demo content (Cucumber Demos).
Requirements
Drupal core ^11.4 || ^12. Drupal 11.4 on PHP 8.5 is the tested default:
the pipeline builds and tests on them (DRUPAL_CORE and _TARGET_PHP in
.gitlab-ci.yml); Drupal 12 and the newest PHP run as optional jobs.
Node.js 24 or later for the tooling and the webship-js suite (package.json),
as for the tooling of Drupal core.
Every library comes from a Composer package, so no asset-packagist,
npm-asset or bower-asset repository is needed.
Cucumber depends on two contributed projects that have not reached a stable release yet:
- Display Builder —
newest release
1.0.0-beta10(beta), pulled in by Webassets. - Config Update —
newest release
2.0.0-alpha4(alpha), pulled in by Webconfig.
Media Directories and
its _ui / _editor components are stable since 3.0.0; Cucumber Core
asks for ^3.0@rc, which 3.0.0 meets.
Composer only honours stability flags such as @beta, @rc and
@alpha in the root composer.json, so a flag written inside a
dependency is ignored. That is why the project root has to relax the
stability itself. drupal/cucumber_project already does it; if you
add Cucumber to a composer.json of your own, it needs:
{
"minimum-stability": "beta",
"prefer-stable": true,
"require": {
"drupal/config_update": "^2.0@alpha"
}
}
prefer-stable keeps every other package on its stable release: a full
Cucumber install locks 8 non-stable packages out of 196, the Display Builder
and Config Update ones.
Installation
With the project template (recommended)
Start from the Cucumber Project template. It requires this distribution and relaxes the stability flags for you, so there is nothing else to configure. Composer, PHP, Drush and the database all run inside DDEV:
mkdir my-site && cd my-site ddev config --project-type=drupal --docroot=web ddev start ddev composer create-project drupal/cucumber_project:~12.0 ddev restart ddev drush site:install cucumber --account-name=webmaster --account-pass=<password> --site-name="<site name>" -y ddev launch
ddev restart picks up the .ddev/config.yaml the template ships, which
replaces the one ddev config wrote: the
Cucumber Project README
gives its PHP, Node.js and MariaDB versions. The site is at
https://<directory>.ddev.site.
On an existing DDEV project
Add the distribution to a Drupal project of your own, then install its profile:
ddev composer require webship/cucumber:~12.0 ddev drush site:install cucumber --account-name=webmaster --account-pass=<password> --site-name="<site name>" -y
The root composer.json has to relax the stability first, as described under
Requirements — otherwise Composer refuses the non-stable dependencies.
The installer asks which user roles, recipes and demo to add. The
defaults install the Admin role and all three recipes, with no demo.
To answer in a browser instead, run ddev launch and follow the installer.
Without DDEV
The same two paths work with a Composer, PHP and database stack of your own:
composer create-project drupal/cucumber_project:~12.0 my-site --no-interaction cd my-site bin/drush site:install cucumber --account-name=webmaster --account-pass=<password> --site-name="<site name>" -y
Drush lives at bin/drush, not vendor/bin/drush: the profile sets the
Composer bin-dir to bin/.
Usage
The site asks everybody to sign in: a visitor who is not signed in is
sent to /user/login, and lands on a dashboard after signing in.
Log in and create a "Feature" media item at media/add/feature: paste
or upload a Gherkin script and file it in a feature directory. The
front page is the default dashboard; features are listed at features.
A feature goes through the automated testing workflow: To Do, In
Progress, Implemented and Published, with Draft as the way back.
The Admin role and the optional user roles write features and take the steps of the workflow that fit their work. The theme of the site, front and back, is UIkit Admin: its navigation shows every signed-in person the Features, Products, Components and Projects links the role may follow, and a Log out link.
Testing
A webship-js suite (Playwright
and Cucumber-js) lives in tests/. See tests/README.md.
Testing users
scripts/add-testing-users.sh adds the users of scripts/cucumber.users.yml
to a Cucumber site, one for each user role of the site: Authenticated user (no
role), Developer, Tester, Analyst, Coordinator, Designer, Product Owner and
Administrator (the Admin role). The optional roles are the ones the installer
adds when they are chosen in its User Roles step. No password is kept in the
repository: each user takes the password in its environment variable,
CUCUMBER_<USER>_PASS (CUCUMBER_TESTER_PASS, CUCUMBER_PRODUCT_OWNER_PASS,
...), or a random one made for the run and printed once at the end, the way CI
makes the passwords of its test accounts.
Run it from the scripts folder of the profile, inside DDEV:
ddev exec 'cd web/profiles/contrib/cucumber/scripts && CUCUMBER_TESTER_PASS="<password>" bash add-testing-users.sh'
bash add-testing-users.sh --help lists every variable.