Download the PHP package fahedaljghine/laravel-model-test without Composer
On this page you can find all versions of the php package fahedaljghine/laravel-model-test. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download fahedaljghine/laravel-model-test
More information about fahedaljghine/laravel-model-test
Files in fahedaljghine/laravel-model-test
Package laravel-model-test
Short Description A package to create CRUD feature tests to eloquent models
License MIT
Homepage https://github.com/fahedaljghine/laravel-model-test
Informations about the package laravel-model-test
Add test to Eloquent models
This package gives you the ability to generate a bunch of tests for all models by one command.
Contact Me
You can check all of my information by Checking my website.
Installation
You can install the package via composer:
you must publish package assets with:
This is the contents of the file which will be published at config/model-test.php
Prerequisites
you need to make sure you have factory for each model before testing
Usage
Add models you want to test to config file like this :
Generate tests
You can generate tests for given models by running this command
this will generate a test file for each model which gives you the ability to extend the tests or overwrite them
Ready for testing!
You can run tests for Post
model by running this command
or you can test all by running
Changelog
Please see CHANGELOG for more information what has changed recently.
Dontae
License
The MIT License (MIT). Please see License File for more information.