https://github.com/thefox/simplecov-phpunit
PHPUnit-like HTML Formatter for SimpleCov.
https://github.com/thefox/simplecov-phpunit
html mit-license ruby ruby-gem ruby-library simplecov
Last synced: 14 days ago
JSON representation
PHPUnit-like HTML Formatter for SimpleCov.
- Host: GitHub
- URL: https://github.com/thefox/simplecov-phpunit
- Owner: TheFox
- License: mit
- Created: 2016-09-13T11:37:03.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-03-23T19:08:34.000Z (almost 6 years ago)
- Last Synced: 2025-03-12T23:01:53.834Z (10 months ago)
- Topics: html, mit-license, ruby, ruby-gem, ruby-library, simplecov
- Language: Ruby
- Homepage: https://fox21.at
- Size: 201 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG-v0.md
- License: LICENSE
Awesome Lists containing this project
README
# SimpleCov PHPUnit Formatter
PHPUnit-like HTML Formatter for SimpleCov.
This [SimpleCov](https://www.ruby-toolbox.com/projects/simplecov)-plugin generates a coverage report (`coverage/index.html`) done like by [PHPUnit](https://phpunit.de/) ([PHP_CodeCoverage](https://github.com/sebastianbergmann/php-code-coverage)). 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](https://blog.fox21.at/2019/02/21/open-source-software-collaboration.html).
- 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
```bash
gem install simplecov-phpunit
```
or via `Gemfile`:
```ruby
gem 'simplecov-phpunit', '~>1.0'
```
or via `.gemspec`:
```ruby
spec.add_development_dependency 'simplecov', '~>0.12'
spec.add_development_dependency 'simplecov-phpunit', '~>1.0'
```
## Usage
```ruby
require 'simplecov'
require 'simplecov-phpunit'
SimpleCov.formatter = SimpleCov::Formatter::PHPUnit
SimpleCov.start
```
## Project Links
- [SimpleCov PHPUnit Formatter Gem](https://rubygems.org/gems/simplecov-phpunit)
## Weblinks
- [SimpleCov](https://www.ruby-toolbox.com/projects/simplecov) ([GitHub](https://github.com/colszowka/simplecov))
- [PHPUnit](https://phpunit.de/)