![Forrest logo](/images/logo.png)
pest:tldr:8d305
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.