Releases: salsadigitalauorg/scaffold-testing
Feature updates
What's Changed
- Added tests by @ivangrynenko in #1
New Contributors
- @ivangrynenko made their first contribution in #1
Full Changelog: 0.4.0...0.4.1
0.4.0
Release Notes - v0.4.0
New Features
- Per-Feature Override Flags: Added support for individual override flags for each feature file in the configuration.
- Dynamic Feature File Installation: When the
files
section is omitted in the configuration, all available feature files will be installed only if they don't already exist in the target directory. - Improved Installer Logic: Updated the Installer class to handle the new configuration structure and provide more detailed logging during the installation process.
Changes
- Configuration Structure: Modified the scaffold-testing configuration in composer.json to use an object for feature files instead of an array.
- Removed override_feature Flag: The global override_feature flag has been removed in favor of per-feature override flags.
Documentation Updates
- README.md: Updated to reflect the new configuration structure and explain the behavior when the files section is omitted.
- Code Comments: Added more detailed comments in the Installer class to explain the new logic for handling feature file installation.
Internal Changes
- Refactored Installer Class: The features method in the Installer class has been refactored to improve readability and maintainability.
- Enhanced Error Handling: Added more robust error checking and messaging in the Installer class.
Upgrading
To upgrade to this version, update your composer.json file to use the new configuration structure for the scaffold-testing section. If you want to keep your current behavior, you'll need to explicitly set the override flag for each feature file.
Example:
"extra": {
"scaffold-testing": {
"target-dir": "tests/behat/",
"files": {
"homepage.feature": false,
"login.feature": false,
"search.feature": true
},
"override_feature_context": false
}
}
If you want all feature files to be installed only if they don't exist, you can omit the files section entirely.
Contributors
We'd like to thank all the contributors who have helped make this release possible.
Full Changelog: 0.3.0...0.4.0
0.3.0 feature release
What's new since 0.3
- Added support for FeatureContext.php
Initial release
Release Notes for Scaffold Testing Library Version 0.2
We are excited to announce the release of Scaffold Testing Library version 0.2. This release brings several enhancements and new features designed to improve the ease and effectiveness of implementing Behat tests across Drupal projects.
What's New in 0.2
-
Enhanced Test Coverage:
- Added new Behat test scenarios for common functionalities within Drupal sites including login processes and search functionalities, alongside the existing homepage feature tests.
-
Improved Installation Process:
- Streamlined the library installation process to make integration into projects faster and more reliable.
-
New Feature Files:
homepage.feature
: Ensures the homepage loads successfully and contains specific keywords or phrases.login.feature
: Tests the login process to ensure it handles credentials correctly.search.feature
: Ensures that the search functionality works and returns expected results.
Bug Fixes
- Fixed an issue where the feature file paths were not being correctly targeted, leading to failures in test initializations.
Upgrading
To upgrade to the latest version, please follow these steps:
-
Update your project's dependency using Composer:
composer require salsadigitalauorg/scaffold-testing:^0.2
-
Run the installation command to ensure that new features are correctly set up:
composer install-features
-
Verify that new tests are properly placed and configured in your
tests/behat/features/
directory.
Contributing
We welcome contributions to the Scaffold Testing Library. Please read our contributing guidelines located in the project repository to see how you can participate in making our project better.
Acknowledgments
Thank you to all the contributors who helped with the development of this release. Your efforts are greatly appreciated!