Download the PHP package renatomarinho/laravel-wave-test without Composer

On this page you can find all versions of the php package renatomarinho/laravel-wave-test. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-wave-test

Laravel Wave Test

Laravel Wave Test is a tool designed to streamline the process of creating and running tests in Laravel projects. This package provides two main commands: generate:tests to automatically generate test files based on your application's routes, and execute:tests to run all tests within the Feature directory and its subdirectories.

Note: This package is intended to accelerate the initial creation of tests. The generated *Test.php files may require manual adjustments to properly fit the specific requirements of your project.


Installation

  1. Install the package via Composer:

  2. Verify the ServiceProvider Registration: The package includes a ServiceProvider that will be registered automatically in Laravel 5.5+ (thanks to Package Auto-Discovery).

    If you're using an older version of Laravel or auto-discovery is disabled, add the following provider to the providers array in the config/app.php file:

  3. Publish Optional Configurations (if needed):

Available Commands

1. php artisan generate:tests

This command scans all registered routes in your Laravel project and generates corresponding test files in the tests/Feature directory. Each route will be converted into a test file, organized into folders based on the route name.

Features:

Example Generated Structure:

Usage:


2. php artisan execute:tests

This command lists all folders inside tests/Feature and runs tests in those folders using PHPUnit. It simplifies the process of executing all tests organized in subfolders.

Usage:

Example Output:


How to Use

  1. Generate Automatic Tests: Run the following command to generate test files based on your application's routes:

    Tip: Ensure your routes are named appropriately (e.g., example.index, example.store) to ensure proper test generation.

  2. Adjust the Generated Tests: After generation, review the created *Test.php files and make necessary adjustments to align them with your project's specific requirements. For example:

    • Change HTTP request methods (get, post, delete, etc.) as needed.
    • Customize mocked values to match the data expected by your controllers.
  3. Run All Tests: Use the following command to execute all tests within the Feature directory and its subdirectories:

Limitations


Roadmap


Contribution

Contributions are welcome! If you encounter bugs or have suggestions for improvements, please open an issue or submit a pull request to the official repository.


License

This package is distributed under the Apache 2.0. Feel free to use, modify, and distribute it according to the terms of the license.


We hope this package helps you save time and effort while ensuring your Laravel application remains well-tested. Happy coding! 🚀


All versions of laravel-wave-test with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
laravel/framework Version ^8.0 || ^9.0 || ^10.0 || ^11.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package renatomarinho/laravel-wave-test contains the following files

Loading the files please wait ...