Skip to content

TheFox/simplecov-phpunit

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 

SimpleCov PHPUnit Formatter

PHPUnit-like HTML Formatter for SimpleCov.

This SimpleCov-plugin generates a coverage report (coverage/index.html) done like by PHPUnit (PHP_CodeCoverage). Each Ruby source file get its own HTML page.

Project Outlines

The project outlines as described in my blog post about Open Source Software Collaboration.

  • The main purpose of this software is to provide a PHPUnit-like layout for SimpleCov.
  • This list is open. Feel free to request features.

Install

The preferred method of installation is via RubyGems.org: https://rubygems.org/gems/simplecov-phpunit

gem install simplecov-phpunit

or via Gemfile:

gem 'simplecov-phpunit', '~>1.0'

or via .gemspec:

spec.add_development_dependency 'simplecov', '~>0.12'
spec.add_development_dependency 'simplecov-phpunit', '~>1.0'

Usage

require 'simplecov'
require 'simplecov-phpunit'

SimpleCov.formatter = SimpleCov::Formatter::PHPUnit
SimpleCov.start

Project Links

Weblinks