Download the PHP package nicwortel/behat-unused-step-definitions-extension without Composer

On this page you can find all versions of the php package nicwortel/behat-unused-step-definitions-extension. 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 behat-unused-step-definitions-extension

Behat Unused Step Definitions Extension

Do you have a large Behat test suite? Would you like to check your feature contexts for unused step definitions? This Behat extension detects and reports step definitions that are not being used in any of your *.feature files.

License Required PHP version Current version

Installation

Activate the extension in your behat.yml:

Usage

After following the installation steps as documented above, simply run Behat. Instead of actually executing the tests, a dry run will be enough to collect information about unused step definitions:

Note that if you have multiple suites, the unused step definitions will be listed per suite after the suite has finished.

Filtering the results

Include / exclude

There are projects where it's important to avoid some step definitions to be detected. For instance, when a project wants to avoid scanning unused step definitions from the third-party packages/libraries and show only results from the custom code. The extension allows to configure a list of regular expressions to include or exclude step definitions in the behat.yml configuration file. Expressions are compared against the FQCN + method name (My\Namespace\ClassName::methodName):

Ignore pattern aliases

Example:

If I take a screenshot is used but I take a screenshot :name is not, enabling ignorePatternAliases: true will prevent the latter from being reported as unused.

Extending

By default, the extension uses the unused_step_definitions_printer printer, shipped in the package. The printer displays the list of unused step definitions in the console. Third-party Behat extension might provide different printers (e.g. one may build a text file with the list of unused step definitions). A custom printer should be defined as a container service and should implement the \NicWortel\BehatUnusedStepDefinitionsExtension\UnusedStepDefinitionsPrinter interface. Using a custom printer is possible by providing its service ID in the behat.yml configuration file:


All versions of behat-unused-step-definitions-extension with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
behat/behat Version ^3.9
symfony/config Version ^4.4 || ^5.4 || ^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 nicwortel/behat-unused-step-definitions-extension contains the following files

Loading the files please wait ....