File tree Expand file tree Collapse file tree 3 files changed +28
-0
lines changed
Expand file tree Collapse file tree 3 files changed +28
-0
lines changed Original file line number Diff line number Diff line change 22.rspec_status
33.yardoc
44* .yml
5+ coverage
56doc
67example /* .json
78Gemfile.lock
Original file line number Diff line number Diff line change @@ -14,3 +14,4 @@ gem 'yard'
1414gem 'rspec' , '~> 3.12'
1515gem 'fakefs' , '~> 1.8'
1616gem 'webmock' , '~> 3.19'
17+ gem 'simplecov'
Original file line number Diff line number Diff line change 1+ require 'simplecov'
2+
3+ SimpleCov . start do
4+ enable_coverage :branch
5+ add_filter "/spec/"
6+ end
7+
18require 'minisky'
29require 'pp' # needs to be included before fakefs
310
1421 c . syntax = [ :should , :expect ]
1522 end
1623end
24+
25+ module SimpleCov
26+ module Formatter
27+ class HTMLFormatter
28+ def format ( result )
29+ # silence the stdout summary, just save the html files
30+ unless @inline_assets
31+ Dir [ File . join ( @public_assets_dir , "*" ) ] . each do |path |
32+ FileUtils . cp_r ( path , asset_output_path , remove_destination : true )
33+ end
34+ end
35+
36+ File . open ( File . join ( output_path , "index.html" ) , "wb" ) do |file |
37+ file . puts template ( "layout" ) . result ( binding )
38+ end
39+ end
40+ end
41+ end
42+ end
You can’t perform that action at this time.
0 commit comments