Opinionated code coverage for PHPSpec
WIP, but working.
This is a slightly more opinionated version of PhpSpec code coverage library. It is designed to give you insight about spec you are currently working on, without interfering when PHPSpec is executed against full test suite (there is extension for that).
- Automatically disables itself for when you run suites (more than 1 specs, will be configurable in later versions);
- Only outputs reports in CLI;
- Outputs line-by-line source code with coverage information in CLI as well;
- Coverage report is only generated for class that the current spec is implemented against.
composer require addvilz/phpspec-cover
extensions: - Addvilz\PhpSpecCover\Extension phpspec_cover: max_specs: 1