From ed04762ac77b28272dac89b06850f71f7180e645 Mon Sep 17 00:00:00 2001 From: Chris Branson <138595+chrisbranson@users.noreply.github.com> Date: Fri, 6 Aug 2021 17:44:14 +0100 Subject: [PATCH] Use simplecov --- .coverage/lcov.info | 107 ++++++++++++++++++++++++++++++++++++++++++++ Gemfile | 3 +- spec/helper.rb | 16 ++++++- 3 files changed, 123 insertions(+), 3 deletions(-) create mode 100644 .coverage/lcov.info diff --git a/.coverage/lcov.info b/.coverage/lcov.info new file mode 100644 index 0000000..6db512c --- /dev/null +++ b/.coverage/lcov.info @@ -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 diff --git a/Gemfile b/Gemfile index 6fecc0b..bf4df8e 100644 --- a/Gemfile +++ b/Gemfile @@ -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 diff --git a/spec/helper.rb b/spec/helper.rb index 32a0218..a4a0325 100644 --- a/spec/helper.rb +++ b/spec/helper.rb @@ -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'