Laravel Test Generator

screenshot of Laravel Test Generator

Don't spend time writing boilerplate for your feature tests in Laravel app.

Overview:

The Laravel feature test generator is a package that helps developers avoid writing boilerplate code for their feature tests. It scans all the routes in a Laravel app and generates a skeleton for testing them.

Features:

  • Generating test classes: The package can generate new test classes based on the routes in your Laravel app.
  • Support for PHPUnit driver: It supports the PHPUnit driver for running tests.
  • Bare happy path case: The package can generate a bare test case for the happy path scenario.
  • Bare failing path case: It can also generate a bare test case for the failing path scenario.
  • Route model binding: The package can parse route model binding and build the necessary setup for tests accordingly.
  • Support for different drivers: It offers support for different drivers, providing flexibility in choosing the testing framework.

Summary:

The Laravel feature test generator is a useful package for Laravel developers who want to streamline their feature testing process. By automatically generating test classes based on the routes in their app, developers can save time and avoid writing repetitive boilerplate code. The package also offers flexibility by supporting multiple testing drivers and providing options for customizing the test configuration. Overall, it is a valuable tool for improving the efficiency and effectiveness of feature testing in Laravel applications.