LinuxCommandLibrary

pest

A PHP testing framework with a focus on simplicity.

TLDR

Initialize a standard Pest configuration in the current directory

$ pest --init
copy


Run tests in the current directory
$ pest
copy


Run tests annotated with the given group
$ pest --group [name]
copy


Run tests and print the coverage report to stdout
$ pest --coverage
copy


Run tests with coverage and fail if the coverage is less than the minimum percentage
$ pest --coverage --min=[80]
copy

Copied to clipboard