Forrest logo
tool overview
On this page you find all important commands for the CLI tool pest. If the command you are looking for is missing please ask our AI.

pest

Pest is a command line tool designed for testing PHP applications. It follows the Arrange, Act, Assert (AAA) testing structure. Pest provides a simple, expressive, and fluent syntax for writing tests. It allows you to write tests using PHP itself, making it easy to read and write. Pest can run tests faster by utilizing parallel testing. It supports testing both HTTP endpoints and console commands. Pest comes with a rich set of assertions for all common PHP scenarios. It includes helpful error messages and stack traces to aid in debugging. Pest allows for test-driven development (TDD) by focusing on writing tests before the actual code. It integrates well with frameworks like Laravel, providing additional features and conventions.

List of commands for pest:

  • pest:tldr:0c6c1 pest: Run tests with coverage and fail if the coverage is less than the minimum percentage.
    $ pest --coverage --min=${80}
    try on your machine
    explain this command
  • pest:tldr:64767 pest: Run tests and print the coverage report to `stdout`.
    $ pest --coverage
    try on your machine
    explain this command
  • pest:tldr:8d305 pest: Initialize a standard Pest configuration in the current directory.
    $ pest --init
    try on your machine
    explain this command
  • pest:tldr:b2ca6 pest: Run tests annotated with the given group.
    $ pest --group ${name}
    try on your machine
    explain this command
  • pest:tldr:fc3a4 pest: Run tests in the current directory.
    $ pest
    try on your machine
    explain this command
tool overview