Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start simplecov early #38

Merged
merged 1 commit into from
Oct 26, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# frozen_string_literal: true

require 'rspec/core'
require 'simplecov'
require 'ears'

SimpleCov.start do
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

like this it added coverage check only for the spec files, but not for the actual files

enable_coverage :branch
primary_coverage :branch
end

require 'rspec/core'
require 'ears'

RSpec.configure(&:disable_monkey_patching!)

if RSpec.configuration.files_to_run.length > 1
# Let's increase this later on
SimpleCov.minimum_coverage line: 99.4, branch: 100
SimpleCov.minimum_coverage line: 97.4, branch: 62.8
end