snippetbashTip
pest — A PHP testing framework with a focus on simplicity. More information: <https://pestphp.com/docs/cli-
Viewed 0 times
commandpestframeworkcliphpwithfocustesting
Problem
How to use the
pest command: A PHP testing framework with a focus on simplicity. More information: <https://pestphp.com/docs/cli-api-reference>.Solution
pest — A PHP testing framework with a focus on simplicity. More information: <https://pestphp.com/docs/cli-api-reference>.Initialize a standard Pest configuration in the current directory:
pest --initRun tests in the current directory:
pestRun tests annotated with the given group:
pest --group {{name}}Run tests and print the coverage report to
stdout:pest --coverageRun tests with coverage and fail if the coverage is less than the minimum percentage:
pest --coverage --min={{80}}Run tests in parallel:
pest --parallelRun tests with mutations:
pest --mutateCode Snippets
Initialize a standard Pest configuration in the current directory
pest --initRun tests in the current directory
pestRun tests annotated with the given group
pest --group {{name}}Run tests and print the coverage report to `stdout`
pest --coverageRun tests with coverage and fail if the coverage is less than the minimum percentage
pest --coverage --min={{80}}Context
tldr-pages: common/pest
Revisions (0)
No revisions yet.