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

Disable coverage report for benchmarks #1176

Merged
merged 1 commit into from Sep 16, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 7 additions & 4 deletions spec/spec_helper.rb
Expand Up @@ -5,10 +5,13 @@
require 'webmock/rspec'
require 'climate_control'

# +SimpleCov.start+ must be invoked before any application code is loaded
require 'simplecov'
SimpleCov.start do
formatter SimpleCov::Formatter::SimpleFormatter
# Skip for benchmarks, as coverage collection slows them down.
unless RSpec.configuration.files_to_run.all? { |path| path.include?('/benchmark/') }
# +SimpleCov.start+ must be invoked before any application code is loaded
require 'simplecov'
SimpleCov.start do
formatter SimpleCov::Formatter::SimpleFormatter
end
end

require 'ddtrace/encoding'
Expand Down