-
Notifications
You must be signed in to change notification settings - Fork 256
/
Copy pathmetrics_test.rb
26 lines (21 loc) · 933 Bytes
/
metrics_test.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# frozen_string_literal: true
# Copyright The OpenTelemetry Authors
#
# SPDX-License-Identifier: Apache-2.0
require 'test_helper'
require 'opentelemetry/test_helpers/metrics' # not loaded by default
describe OpenTelemetry::TestHelpers::Metrics do
describe 'dependencies' do
let(:gemspec) { Gem.loaded_specs.fetch('opentelemetry-test-helpers') }
let(:dependencies) { gemspec.dependencies.map(&:name) }
# NOTE: The `metrics` module here is intended to facilitate testing
# for instrumentation libraries that should function with or without
# the metrics-api in the bundle. Including it in this test helper
# should be considered a mistake unless additional provisions are made to preserve
# this feature.
it 'does not include the api or sdk gems' do
_(dependencies).wont_include('opentelemetry-metrics-sdk')
_(dependencies).wont_include('opentelemetry-metrics-api')
end
end
end