Skip to content

πŸ“Š A custom SimpleCov formatter to display summaries of coverage reports in table format.

License

Notifications You must be signed in to change notification settings

cheap-glitch/simplecov-table

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“Š simplecov-table

License Latest release

This is a custom SimpleCov formatter that displays table-formatted summaries of your coverage reports in the terminal. It prints the total coverage ratio of each source file, along with a compressed list of the uncovered lines.

────────────────────┬──────────┬──────────────────────────────────────
 Files              β”‚ Coverage β”‚ Uncovered lines
────────────────────┼──────────┼──────────────────────────────────────
 lib/foo.rb         β”‚ 78.0%    β”‚ 11,12,20-27
 lib/foo/bar.rb     β”‚ 100.0%   β”‚
 lib/foo/baz.rb     β”‚ 33.5%    β”‚ 3,5,63-75,122,128
────────────────────┴──────────┴──────────────────────────────────────

Installation

gem install simplecov-table

Usage

require 'simplecov'
require 'simplecov-table'

SimpleCov.formatter = SimpleCov::Formatter::TableFormatter
SimpleCov.start

Or, if you want to use several formatters:

require 'simplecov'
require 'simplecov-table'

SimpleCov.formatters = SimpleCov::Formatter::MultiFormatter.new([
  SimpleCov::Formatter::HTMLFormatter,
  SimpleCov::Formatter::TableFormatter,
])
SimpleCov.start

Changelog

See the full changelog here.

Contributing

Contributions are welcomed! Please open an issue before submitting substantial changes.

Related

License

ISC

About

πŸ“Š A custom SimpleCov formatter to display summaries of coverage reports in table format.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Languages