snippetbashTip
behat — A PHP framework for Behaviour-Driven Development. More information: <https://docs.behat.org/en/lates
Viewed 0 times
behatdrivencommandframeworkbehaviourcliphpfor
Problem
How to use the
behat command: A PHP framework for Behaviour-Driven Development. More information: <https://docs.behat.org/en/latest/user_guide/command_line_tool.html>.Solution
behat — A PHP framework for Behaviour-Driven Development. More information: <https://docs.behat.org/en/latest/user_guide/command_line_tool.html>.Initialize a new Behat project:
behat --initRun all tests:
behatRun all tests from the specified suite:
behat --suite {{suite_name}}Run tests with a specific output formatter:
behat --format {{pretty|progress}}Run tests and output results to a file:
behat --out {{path/to/file}}List the definitions in your test suites:
behat --definitionsCode Snippets
Initialize a new Behat project
behat --initRun all tests
behatRun all tests from the specified suite
behat --suite {{suite_name}}Run tests with a specific output formatter
behat --format {{pretty|progress}}Run tests and output results to a file
behat --out {{path/to/file}}Context
tldr-pages: common/behat
Revisions (0)
No revisions yet.