2025-03-14 21:59:59 -06:00
|
|
|
# behat
|
|
|
|
|
|
|
|
|
|
> A PHP framework for Behaviour-Driven Development.
|
2025-12-16 10:20:31 -07:00
|
|
|
> More information: <https://docs.behat.org/en/latest/user_guide/command_line_tool.html>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Initialize a new Behat project:
|
|
|
|
|
|
|
|
|
|
`behat --init`
|
|
|
|
|
|
|
|
|
|
- Run all tests:
|
|
|
|
|
|
|
|
|
|
`behat`
|
|
|
|
|
|
|
|
|
|
- Run 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 --definitions`
|