Download the PHP package acquia/drupal-spec-tool without Composer
On this page you can find all versions of the php package acquia/drupal-spec-tool. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package drupal-spec-tool
Drupal Spec Tool
This project provides a tool for specifying Drupal architecture details and generating automated tests for them. It consists of 1) examples).
Getting started
Google sheet
Copy the current Google sheet to your Google Drive:
Behat tests
Assuming you already have Behat installed via Composer...
-
Install the Behat contexts:
-
Add the new contexts to your Behat configuration, e.g.:
-
Copy BLT-based project:
-
As you change the specification, update the features to match using the generated Gherkin on the "Behat" tab of the Google sheet. (See Advanced below to automate this process.)
- Run Behat! If the tests pass, your application matches the specification. If not, change one or the other according to your needs.
Usage
Learn more about the features of the tool and best practices for using it in the announcement blog post on the Acquia Developer Center.
Customization
You can supplement or override out-of-the-box behavior by extending and replacing the default context classes with your own, e.g.:
Supporting tools
The community has provided tools to build on the Drupal Spec Tool:
- Drupal Spec Tool Commands - Provides commands to automatically update the Google Sheet to match an existing Drupal site. This is helpful for adding the Drupal Spec Tool on a pre-existing project.
- Drupal Entity Generator (DEG) - Automatically generates Drupal configuration based on the Google Sheet, i.e., goes "the other way" and updates your Drupal site to match your specification.
Known issues
See open bug reports in the issue queue.
Contribution
Contributions are welcome! See CONTRIBUTING.md.
License
Copyright (C) 2018 Acquia, Inc.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
All versions of drupal-spec-tool with dependencies
drupal/core Version >=10.0.0-alpha1
drupal/drupal-extension Version dev-main
traviscarden/behat-table-comparison Version ^0.3