Skip to content

milan/PhpSpecCodeCoverageExtension

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PhpSpec Code Coverage

Add it to your composer.json file to install with Composer:

{
    "require" : {
        "henrikbjorn/phpspec-code-coverage" : "1.0@dev"
    }
}
$ composer update henrikbjorn/phpspec-code-coverage

Enable it in your phpspec.yml file:

extensions:
    - PhpSpec\Extension\CodeCoverageExtension

Now run your specs with the normal phpspec run and voila your code coverage will be available in coverage.

Configuration Options

It is possible to control a bit out how the code coverage is done through phpspec.yml. This is done by adding a code_coverage key which takes a hash of options.

  • whitelist takes an array of directories to whitelist (default: lib, src).
  • blacklist takes an array of directories to blacklist (default: test, spec, vendor).
  • output takes a location relative to the place you are running phpspec run (default: coverage).

About

Extension for PhpSpec that brings Code Coverage.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%