Download the PHP package salsadigitalauorg/scaffold-testing without Composer

On this page you can find all versions of the php package salsadigitalauorg/scaffold-testing. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package scaffold-testing

Scaffold Testing

A testing framework for Vortex scaffold that provides automated test setup and configuration.

Installation

Configuration

Add the following configuration to your project's composer.json:

Configuration Options

Examples

  1. Default Setup:

  2. Custom Directory:

  3. Specific Features with Override:

  4. Override All Features:

Development

See README.developers.md for development setup and guidelines.

Overview

The Scaffold Testing Library provides a set of default Behat tests tailored for Drupal projects, aiming to ensure consistent testing across different deployments. This library helps streamline the testing process by providing ready-to-use Behat test scenarios that cover common functionalities within Drupal sites.

Jumpstart Features

Usage

After installation, the Behat test files are placed in the tests/behat/features/ directory of your Drupal project. You can run these tests using Behat with a command similar to:

Make sure you have configured Behat properly in your Drupal project to recognize and execute these tests.

Configuration

To ensure the salsadigitalauorg/scaffold-testing runs as you execute composer install or composer update, add the following to the post-install-cmd and post-update-cmd sections of your project' composer.json:

Alternatively, add install-features command only:

To customize the tests or the installation path, you can modify the extra section in your project's composer.json:

If the files section is omitted, all available feature files will be installed only if they don't already exist in the target directory.

The installer will create the necessary subdirectories within the target-dir:

Contributing

Contributions to the Scaffold Testing Library are welcome! Please feel free to submit pull requests or create issues for any bugs you discover or enhancements you suggest.

License

This library is provided under the MIT License. See the LICENSE file for more information.

Breaking Changes in Version 0.4.2

Important: Trait-based Step Definitions

Starting from version 0.4.2, we've moved to a trait-based approach for step definitions. This is a breaking change that requires manual intervention for existing projects.

For Existing Projects

If you're upgrading from a previous version, you'll need to:

  1. Remove the old step definitions from your FeatureContext.php
  2. Add the trait to your FeatureContext.php:

For New Projects

The installer will automatically set up your FeatureContext.php with the trait. You can add your custom step definitions alongside the trait.

Combining Custom Steps

You can add your own custom step definitions alongside the trait:

Requirements

Dependencies

This package requires the following dependencies which will be installed automatically:


All versions of scaffold-testing with dependencies

PHP Build Version
Package Version
Requires php Version >=8.3
composer/installers Version ^2.0
phpunit/phpunit Version ^9.6
behat/behat Version ^3.13
drupal/drupal-extension Version ^5.0
symfony/process Version ^6.0|^7.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package salsadigitalauorg/scaffold-testing contains the following files

Loading the files please wait ....