dev-master
9999999-devWarn tests that are slow to running
MIT
The Requires
- php >=5.4.0
- illuminate/support *
by Guilherme Guitte
laravel test illuminate runtime slow
Wallogit.com
2017 © Pedro Peláez
Warn tests that are slow to running
Showing tests that are very slow to running., (*1)
![Example:][1], (*2)
In the require key of your composer.json add the following line:, (*3)
"guilhermeguitte/laravel-slow-test": "dev-master"
Run the Composer update command:, (*4)
$ composer update
Add in your phpunit.xml, (*5)
<phpunit>
...
<listeners>
<listener class="GuilhermeGuitte\LaravelSlowTest\RunTimeListener" file="vendor/guilhermeguitte/laravel-slow-test/src/GuilhermeGuitte/LaravelSlowTest/RunTimeListener.php"/>
</listeners>
</phpunit>
You can specify the maximum execution by tests (default value is 100 ms), creating test.php at app/config folder:, (*6)
<? php
return array(
'max_execution_time' => 50 // ms
);
Following principles of Uncle Bob (Robert C. Martin), the Clean Code book, he says that all tests should be FIRST, speaking of ** F ** specifically:, (*7)
Laravel Slow Test aims to assist in finding slow down. Initially, a small project you do not notice much difference, few tests, but when the project grows, you see how that makes a big difference., (*8)
Stay tuned!, (*9)
Laravel-slow-test is free software distributed under the terms of the MIT license, (*10)
Warn tests that are slow to running
MIT
laravel test illuminate runtime slow