Skip to content

Commit

Permalink
Use simplecov
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbranson committed Aug 6, 2021
1 parent 47050aa commit ed04762
Show file tree
Hide file tree
Showing 3 changed files with 123 additions and 3 deletions.
107 changes: 107 additions & 0 deletions .coverage/lcov.info
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
SF:./lib/ruby_identicon.rb
DA:28,1
DA:29,1
DA:30,1
DA:31,1
DA:48,1
DA:61,1
DA:78,1
DA:79,3
DA:81,2
DA:82,1
DA:84,2
DA:96,1
DA:97,23
DA:99,23
DA:100,21
DA:101,20
DA:102,18
DA:103,17
DA:105,16
DA:107,16
DA:108,16
DA:111,16
DA:114,16
DA:116,16
DA:117,16
DA:118,435
DA:119,235
DA:120,235
DA:123,235
DA:126,235
DA:127,235
DA:130,435
DA:131,435
DA:132,435
DA:133,63
DA:134,63
DA:138,16
DA:141,1
DA:142,1
end_of_record
SF:./lib/siphash.rb
DA:24,1
DA:25,1
DA:26,16
DA:27,16
DA:28,16
DA:30,16
DA:31,17
DA:32,17
DA:35,16
DA:37,16
DA:38,16
DA:39,16
DA:42,1
DA:44,1
DA:45,16
DA:47,16
DA:48,16
DA:50,16
DA:51,16
DA:52,16
DA:53,16
DA:54,16
DA:55,16
DA:56,16
DA:57,16
DA:60,1
DA:62,1
DA:64,1
DA:65,16
DA:66,16
DA:67,16
DA:68,16
DA:70,16
DA:71,16
DA:73,16
DA:74,16
DA:75,16
DA:76,16
DA:79,1
DA:80,33
DA:81,99
DA:82,33
DA:85,1
DA:86,780
DA:89,1
DA:90,130
DA:91,130
DA:92,130
DA:93,130
DA:94,130
DA:95,130
DA:96,130
DA:97,130
DA:98,130
DA:99,130
DA:100,130
DA:101,130
DA:102,130
DA:103,130
DA:106,1
DA:107,16
DA:108,80
DA:111,1
DA:112,16
end_of_record
3 changes: 2 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ group :development do
end

group :test do
gem 'coveralls', :require => false
gem 'simplecov', '~> 0.21'
gem 'simplecov-lcov', '~> 0.8'
end

# Specify your gem's dependencies in ruby_identicon.gemspec
Expand Down
16 changes: 14 additions & 2 deletions spec/helper.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
require 'coveralls'
Coveralls.wear!
require 'simplecov'
require 'simplecov-lcov'

SimpleCov::Formatter::LcovFormatter.config do |config|
config.report_with_single_file = true
config.single_report_path = '.coverage/lcov.info'
end

SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([
SimpleCov::Formatter::HTMLFormatter,
SimpleCov::Formatter::LcovFormatter
])

SimpleCov.start

require 'rspec'
require 'ruby_identicon'

0 comments on commit ed04762

Please sign in to comment.