2017 © Pedro Peláez
 

project phpcov-runner

A tool which allows you to perform a code coverage analysis on multiple PHP files

image

legovaer/phpcov-runner

A tool which allows you to perform a code coverage analysis on multiple PHP files

  • Saturday, September 17, 2016
  • by legovaer
  • Repository
  • 1 Watchers
  • 0 Stars
  • 253 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

phpcov-runner

phpcov-runner is a command-line tool which allows you to analyse multiple PHP files using PHPCOV., (*1)

Installation

Composer

Simply add a dependency on legovaer/phpcov-runner to your project's composer.json file if you use Composer to manage the dependencies of your project. Here is a minimal example of a composer.json file that just defines a development-time dependency on PHPCOV-Runner:, (*2)

{
    "require-dev": {
        "legovaer/phpcov-runner": "*"
    }
}

For a system-wide installation via Composer, you can run:, (*3)

composer global require 'legovaer/phpcov-runner=*'

Make sure you have `~/.composer/vendor/bin/ in your path., (*4)

Usage

Start runner

In order to start the PHPCOVRunner, the only command you need to execute is:, (*5)

$ phpcovrunner start

Analysing PHP files

In order to allow PHP files getting analysed, you will need to add three lines to the top of the PHP script:, (*6)

When using the global application

$path = $HOME . '/.composer/vendor/legovaer/phpcov-runner/lib";
set_include_path(get_include_path() . PATH_SEPARATOR . $path);
require "autocoverage.php";

When using the application as a local dependency

$path = __DIR__ . '/vendor/legovaer/phpcov-runner/lib";
set_include_path(get_include_path() . PATH_SEPARATOR . $path);
require "autocoverage.php";

Stop runner & generate report

In order to stop the PHPCOVRunner, you will need to execute:, (*7)

$ phpcovrunner stop

More information about formatting the report can be found on the official page of PHPCOV., (*8)

The Versions

17/09 2016

dev-master

9999999-dev

A tool which allows you to perform a code coverage analysis on multiple PHP files

  Sources   Download

GNU-2+

The Requires

 

by Levi Govaerts

08/06 2016

2.0.x-dev

2.0.9999999.9999999-dev

A tool which allows you to perform a code coverage analysis on multiple PHP files

  Sources   Download

GNU-2+

The Requires

 

by Levi Govaerts

07/06 2016

3.0.x-dev

3.0.9999999.9999999-dev

A tool which allows you to perform a code coverage analysis on multiple PHP files

  Sources   Download

GNU-2+

The Requires

 

by Levi Govaerts