Skip to content

HTML formatter for SimpleCov that uses inline/embedded assets

License

Notifications You must be signed in to change notification settings

tobyhs/simplecov_html_inline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simplecov_html_inline

This is a Ruby gem that contains SimplecovHtmlInline::Formatter, a SimpleCov formatter based on simplecov-html that uses inline/embedded assets (via data URIs).

This is useful for cases such as using continuous integration software that publishes artifacts to a private S3 bucket and lets you view artifacts by responding with a redirect to a signed S3 URL. With simplecov-html, the index.html file won't work because it uses relative URLs for assets, which do not have S3 signatures.

Usage

require 'simplecov'
require 'simplecov_html_inline'

SimpleCov.start do
  formatter SimplecovHtmlInline::Formatter
end