Forrest logo
back to the behat tool

behat:tldr:968e3

behat: Run all tests from the specified suite.
$ behat --suite=${suite_name}
try on your machine

This command is used to run Behat test suites with a parameter called "${suite_name}".

Behat is a testing framework for behavior-driven development (BDD) in PHP. It allows developers to write acceptance tests in a human-readable format using Gherkin syntax. Test suites in Behat are a collection of scenarios that test specific features of an application.

The "--suite" option is used to specify the name of the test suite that you want to run. By using "${suite_name}" as a placeholder, it implies that you need to replace it with the actual name of the test suite.

For example, if you have a test suite called "api", you would run the command as follows:

behat --suite=api

This command would execute all the scenarios defined in the "api" test suite, running the corresponding test steps and generating a report of the test results.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the behat tool