From bdda4028831f341fabd3c18c69ef2f8a5252f917 Mon Sep 17 00:00:00 2001 From: Josh Cooper Date: Tue, 13 Feb 2024 09:18:11 -0800 Subject: [PATCH] Drop code coverage --- .github/workflows/test.yml | 2 -- .simplecov | 9 --------- Gemfile | 5 ----- README.md | 1 - Rakefile | 7 ------- spec/spec_helper.rb | 24 ------------------------ 6 files changed, 48 deletions(-) delete mode 100644 .simplecov diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 28f6a166..5b38c8cd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -30,10 +30,8 @@ jobs: - ruby: "2.7" - ruby: "3.0" - ruby: "3.1" - coverage: "yes" - ruby: "3.2" env: - COVERAGE: ${{ matrix.coverage }} BUNDLE_WITHOUT: release:rubocop steps: - uses: actions/checkout@v4 diff --git a/.simplecov b/.simplecov deleted file mode 100644 index 6f58edf2..00000000 --- a/.simplecov +++ /dev/null @@ -1,9 +0,0 @@ -SimpleCov.configure do - add_filter 'spec/' - add_filter 'vendor/' - add_filter do |file| - file.lines_of_code < 10 - end -end - -SimpleCov.start if ENV['BEAKER_TEMPLATE_COVERAGE'] diff --git a/Gemfile b/Gemfile index 19b590c3..6e8c16c7 100644 --- a/Gemfile +++ b/Gemfile @@ -9,11 +9,6 @@ group :release do gem 'github_changelog_generator', require: false end -group :coverage, optional: ENV['COVERAGE'] != 'yes' do - gem 'codecov', require: false - gem 'simplecov-console', require: false -end - group :rubocop do gem 'voxpupuli-rubocop', '~> 2.0' end diff --git a/README.md b/README.md index 544d1078..1f9e8fa9 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,6 @@ [![License](https://img.shields.io/github/license/voxpupuli/beaker-hostgenerator.svg)](https://github.com/voxpupuli/beaker-hostgenerator/blob/master/LICENSE) [![Test](https://github.com/voxpupuli/beaker-hostgenerator/actions/workflows/test.yml/badge.svg)](https://github.com/voxpupuli/beaker-hostgenerator/actions/workflows/test.yml) -[![codecov](https://codecov.io/gh/voxpupuli/beaker-hostgenerator/branch/master/graph/badge.svg)](https://codecov.io/gh/voxpupuli/beaker-hostgenerator) [![Release](https://github.com/voxpupuli/beaker-hostgenerator/actions/workflows/release.yml/badge.svg)](https://github.com/voxpupuli/beaker-hostgenerator/actions/workflows/release.yml) [![RubyGem Version](https://img.shields.io/gem/v/beaker-hostgenerator.svg)](https://rubygems.org/gems/beaker-hostgenerator) [![RubyGem Downloads](https://img.shields.io/gem/dt/beaker-hostgenerator.svg)](https://rubygems.org/gems/beaker-hostgenerator) diff --git a/Rakefile b/Rakefile index 0bc7b53e..bc6f5c0d 100644 --- a/Rakefile +++ b/Rakefile @@ -18,13 +18,6 @@ namespace :test do t.pattern = 'spec/' t.ruby_opts = '-Itest' end - - desc 'Run spec tests with coverage' - RSpec::Core::RakeTask.new(:coverage) do |t| - ENV['BEAKER_TEMPLATE_COVERAGE'] = 'y' - t.rspec_opts = ['--color'] - t.pattern = 'spec/' - end end end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 3f152551..e29c0d01 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,29 +1,5 @@ # frozen_string_literal: true -begin - require 'simplecov' - require 'simplecov-console' - require 'codecov' -rescue LoadError -else - SimpleCov.start do - track_files 'lib/**/*.rb' - - add_filter '/spec' - - enable_coverage :branch - - # do not track vendored files - add_filter '/vendor' - add_filter '/.vendor' - end - - SimpleCov.formatters = [ - SimpleCov::Formatter::Console, - SimpleCov::Formatter::Codecov, - ] -end - # The Rakefile includes this, but having them in spec_helper makes it possible # to run specific test cases via commandline when developing. local_libdir = File.join(__FILE__, '../../lib')