Skip to content

Commit

Permalink
Added coveralls reporting.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesiarmes committed Sep 3, 2024
1 parent 4b83e14 commit 2b72e9d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ jobs:
with:
bundler-cache: true
- name: Run tests
run: bundle exec rspec
run: bundle exec rake spec
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ group :development do
end

group :test do
gem 'coveralls_reborn', '~> 0.28'
gem 'factory_bot', '~> 6.4'
gem 'rspec', '~> 3.13'
gem 'rspec-github', '~> 2.4'
Expand Down
6 changes: 4 additions & 2 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# frozen_string_literal: true

require 'factory_bot'

# Configure code coverage reporting.
if ENV.fetch('COVERAGE', false)
require 'coveralls'
require 'simplecov'

Coveralls.wear!
SimpleCov.minimum_coverage 95
SimpleCov.start do
add_filter '/spec/'
Expand All @@ -14,6 +14,8 @@
end
end

require 'factory_bot'

RSpec.configure do |config|
config.include FactoryBot::Syntax::Methods
config.shared_context_metadata_behavior = :apply_to_host_groups
Expand Down

0 comments on commit 2b72e9d

Please sign in to comment.