Skip to content

Commit

Permalink
Ignore coverage report for skipped benchmark tests (#1299)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcotc authored Jan 5, 2021
1 parent ceadd55 commit 57b8f14
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/ddtrace/buffer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ def get_test_items(n = 1)
end
end

# :nocov:
describe 'performance' do
require 'benchmark'
let(:n) { 10_000 }
Expand Down Expand Up @@ -279,6 +280,7 @@ def get_test_items(n = 1)
end
end
end
# :nocov:
end

RSpec.describe Datadog::TraceBuffer do
Expand Down Expand Up @@ -593,6 +595,7 @@ def measure_trace_size(trace)
end
end

# :nocov:
RSpec.shared_examples 'performance' do
subject(:buffer) { described_class.new(max_size) }
let(:max_size) { 0 }
Expand Down Expand Up @@ -713,6 +716,7 @@ def get_test_items(n = 1)
end
end
end
# :nocov:

RSpec.describe Datadog::ThreadSafeBuffer do
it_behaves_like 'thread-safe buffer'
Expand Down

0 comments on commit 57b8f14

Please sign in to comment.