Add c3 code coverage.

This commit is contained in:
James Cole 2015-02-07 10:38:27 +01:00
parent 1a42bec51c
commit 8de142cd9a
2 changed files with 13 additions and 2 deletions

View File

@ -54,11 +54,14 @@
"scripts": { "scripts": {
"post-install-cmd": [ "post-install-cmd": [
"php artisan clear-compiled", "php artisan clear-compiled",
"php artisan optimize" "php artisan optimize",
"Codeception\\c3\\Installer::copyC3ToRoot"
], ],
"post-update-cmd": [ "post-update-cmd": [
"php artisan clear-compiled", "php artisan clear-compiled",
"php artisan optimize" "php artisan optimize",
"Codeception\\c3\\Installer::copyC3ToRoot"
], ],
"post-create-project-cmd": [ "post-create-project-cmd": [
"php -r \"copy('.env.example', '.env');\"", "php -r \"copy('.env.example', '.env');\"",

View File

@ -20,6 +20,14 @@
require __DIR__.'/../bootstrap/autoload.php'; require __DIR__.'/../bootstrap/autoload.php';
/**
* Adding c3.php for code coverage during codeception tests
* ref: https://github.com/Codeception/c3
*/
if (file_exists(__DIR__ . '/../c3.php')) {
require __DIR__ . '/../c3.php';
}
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| Turn On The Lights | Turn On The Lights