mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-31 00:41:42 +00:00
34 lines
576 B
Plaintext
34 lines
576 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# behat
|
|
|
|
> A PHP framework for Behaviour-Driven Development.
|
|
> More information: <https://behat.org>.
|
|
|
|
- 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`
|