Forrest logo
back to the pest tool

pest:tldr:8d305

pest: Initialize a standard Pest configuration in the current directory.
$ pest --init
try on your machine

The command "pest --init" is used to create a new Pest test suite in your project.

Pest is a testing framework for PHP projects that focuses on elegance and simplicity. It provides a fluent and expressive syntax for writing tests and supports different types of tests such as unit tests, feature tests, and integration tests.

By running "pest --init", you are initializing a new Pest test suite in your project. It sets up the necessary files and directory structure needed for organizing and running Pest tests. This command creates a "tests" directory (if it doesn't exist already) and generates a "Pest.php" file within it. The Pest.php file serves as the entry point for running Pest tests.

After running this command, you can start writing your tests in the "tests" directory using the Pest syntax, and then execute them with the "pest" command.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the pest tool