From 2b72e9d963e5cfc900e4b804d75cb74b5909e762 Mon Sep 17 00:00:00 2001 From: James Armes Date: Tue, 3 Sep 2024 00:30:21 -0400 Subject: [PATCH] Added coveralls reporting. --- .github/workflows/checks.yaml | 2 +- Gemfile | 1 + spec/spec_helper.rb | 6 ++++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/checks.yaml b/.github/workflows/checks.yaml index 78a3d20..285fd7f 100644 --- a/.github/workflows/checks.yaml +++ b/.github/workflows/checks.yaml @@ -29,4 +29,4 @@ jobs: with: bundler-cache: true - name: Run tests - run: bundle exec rspec + run: bundle exec rake spec diff --git a/Gemfile b/Gemfile index c19b2d0..fd78604 100644 --- a/Gemfile +++ b/Gemfile @@ -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' diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 6ffad27..1df472d 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -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/' @@ -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