GithubHelp home page GithubHelp logo

systemy-flexmind / laravel-test-generator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jarektkaczyk/laravel-test-generator

0.0 0.0 0.0 23 KB

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

License: MIT License

PHP 100.00%

laravel-test-generator's Introduction

Laravel feature test generator

Latest Version on Packagist GitHub Tests Action Status Total Downloads

Don't write boilerplate for your feature tests! This package scans all the routes in your Laravel app and generates skeleton for testing them.

Installation

You can install the package via composer:

composer require jarektkaczyk/package-laravel-test-generator-laravel

You can publish the config file with and customize it afterwards in config/test_generator.php:

php artisan vendor:publish --provider="Sofa\LaravelTestGenerator\LaravelTestGeneratorServiceProvider" --tag="config"

Usage

php artisan generate:feature-tests

Roadmap

  • support for PHPUnit driver
    • generate new test classes
    • bare happy path case
    • bare failing path case
    • parse route model binding and build setup for tests accordingly
    • (OPTIONAL) parse requests and build setup for tests accordingly - might be too complex in many cases
    • (OPTIONAL) update existing test classes with new methods (not trivial with nette/php-generator, find better way?)
  • support for different drivers
  • (OPTIONAL) other drivers

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

laravel-test-generator's People

Contributors

jarektkaczyk avatar systemy-flexmind avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.