PHP code example of capell-app / pest-plugin-blade-coverage
1. Go to this page and download the library: Download capell-app/pest-plugin-blade-coverage library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
capell-app / pest-plugin-blade-coverage example snippets
declare(strict_types=1);
return [
'],
'exclude' => [],
'baseline' => 'tests/BladeCoverage/baseline.json',
'cache' => '.cache/pest-blade-coverage',
// How uncovered views are grouped in the console output:
// 'auto' (default) | 'package' | 'directory' | 'flat'.
'group_by' => 'auto',
// 'baseline' (default) ratchets against the committed baseline.
// 'strict' ignores the baseline and fails on ANY uncovered view.
'mode' => 'baseline',
// Optionally fail when the covered percentage drops below this threshold.
'min_coverage' => null,
];