Skip to content

Releases: salsadigitalauorg/scaffold-testing

Feature updates

07 Oct 07:05
d347913
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.4.0...0.4.1

0.4.0

20 Sep 02:23
Compare
Choose a tag to compare

Release Notes - v0.4.0

New Features

  1. Per-Feature Override Flags: Added support for individual override flags for each feature file in the configuration.
  2. 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.
  3. Improved Installer Logic: Updated the Installer class to handle the new configuration structure and provide more detailed logging during the installation process.

Changes

  1. Configuration Structure: Modified the scaffold-testing configuration in composer.json to use an object for feature files instead of an array.
  2. Removed override_feature Flag: The global override_feature flag has been removed in favor of per-feature override flags.

Documentation Updates

  1. README.md: Updated to reflect the new configuration structure and explain the behavior when the files section is omitted.
  2. Code Comments: Added more detailed comments in the Installer class to explain the new logic for handling feature file installation.

Internal Changes

  1. Refactored Installer Class: The features method in the Installer class has been refactored to improve readability and maintainability.
  2. 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

10 Sep 04:55
Compare
Choose a tag to compare

What's new since 0.3

  • Added support for FeatureContext.php

Initial release

06 Sep 06:49
Compare
Choose a tag to compare

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:

  1. Update your project's dependency using Composer:

    composer require salsadigitalauorg/scaffold-testing:^0.2
  2. Run the installation command to ensure that new features are correctly set up:

    composer install-features
  3. 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!