2019-05-26 20:50:03 +01:00
|
|
|
# behat
|
|
|
|
|
|
|
|
> A PHP framework for Behaviour-Driven Development.
|
|
|
|
> More information: <https://behat.org>.
|
|
|
|
|
2022-06-27 11:23:12 +01:00
|
|
|
- Initialize a new Behat project:
|
2019-05-26 20:50:03 +01:00
|
|
|
|
|
|
|
`behat --init`
|
|
|
|
|
|
|
|
- Run all tests:
|
|
|
|
|
|
|
|
`behat`
|
|
|
|
|
|
|
|
- Run all tests from the specified suite:
|
|
|
|
|
2024-04-18 19:38:25 +01:00
|
|
|
`behat --suite {{suite_name}}`
|
2019-05-26 20:50:03 +01:00
|
|
|
|
|
|
|
- Run tests with a specific output formatter:
|
|
|
|
|
|
|
|
`behat --format {{pretty|progress}}`
|
|
|
|
|
|
|
|
- Run tests and output results to a file:
|
|
|
|
|
|
|
|
`behat --out {{path/to/file}}`
|
|
|
|
|
2024-01-31 03:55:19 +00:00
|
|
|
- List the definitions in your test suites:
|
2019-05-26 20:50:03 +01:00
|
|
|
|
|
|
|
`behat --definitions`
|