Skip to content

Commit

Permalink
tests: add SimpleCov for test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoles committed Oct 3, 2020
1 parent 3b3d9b5 commit 2202a81
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .simplecov
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
SimpleCov.start do
end
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ group :test do
gem 'rubocop'
gem 'rdoc'
gem 'bundler-audit'
gem 'simplecov', require: false
end

# Needed for debugging WhatWeb
Expand Down
3 changes: 2 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ task :default => :unit

Rake::TestTask.new(:unit) do |t|
t.description = 'Run unit tests'
t.test_files = FileList['test/unit/test_*.rb']
t.test_files = FileList['test/enable_coverage.rb', 'test/unit/test_*.rb']
t.verbose = true
end

Rake::TestTask.new(:integration) do |t|
Expand Down
1 change: 1 addition & 0 deletions test/enable_coverage.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require 'simplecov'

0 comments on commit 2202a81

Please sign in to comment.