Download the PHP package axitbv/laravel-blueprint-streamlined-test-addon without Composer
On this page you can find all versions of the php package axitbv/laravel-blueprint-streamlined-test-addon. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download axitbv/laravel-blueprint-streamlined-test-addon
More information about axitbv/laravel-blueprint-streamlined-test-addon
Files in axitbv/laravel-blueprint-streamlined-test-addon
Package laravel-blueprint-streamlined-test-addon
Short Description Swap Blueprint's TestGenerator with my own *too fancy* and *too specific*, *streamlined* tests for API Resource Controllers
License MIT
Homepage https://github.com/axitbv/laravel-blueprint-streamlined-test-addon
Informations about the package laravel-blueprint-streamlined-test-addon
Laravel Blueprint Streamlined Tests Addon
Swaps Blueprint's TestGenerator with my own too fancy and too specific, streamlined tests for API Resource Controllers.
Installation
You can install the package via composer:
Usage
Create your blueprint draft.yaml as usual. In order to generate the streamlined tests that this package provides, be sure to include the resource: api
shorthand in your controllers:
section:
This resource: api
shorthand expands to generate an API resource controller, form requests, resources and resource collections. Yet, instead of the broken tests that currently come out of the box with Blueprint, it will provide you with a very opinionated, yet working testsuite for the geneated code, with 100% code coverage.
Which will yield:
Then, either run php artisan test
:
Or use phpunit
:
For code coverage reporting, install PCOV using pecl install pcov
and invoke phpunit with --coverage-text
.
Changelog
Please see CHANGELOG for more information 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
- Joost Jacobs
- All Contributors
Big Thank You To
- Jason McCreary for creating Blueprint, the constructive feedback, your vision and allowing Blueprint to swap Generators.
- Daniel Mason for inspiring me with Blueprint Pest Addon that generates PestPHP test code
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-blueprint-streamlined-test-addon with dependencies
illuminate/support Version ^7.0
jasonmccreary/laravel-test-assertions Version ^1.0