Skip to content

Commit ec71a68

Browse files
committed
Exclude patch files from coverage check
1 parent b38b544 commit ec71a68

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.coveragerc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
[run]
2+
omit =
3+
*/amazon/opentelemetry/distro/patches/*.py
4+
15
[report]
26
include_namespace_packages = true
37
fail_under = 95.00

aws-opentelemetry-distro/tests/amazon/opentelemetry/distro/test_aws_opentelementry_configurator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def setUpClass(cls):
6161

6262
# Overwrite exporter configs to keep tests clean, set sampler configs for tests
6363
os.environ[OTEL_TRACES_EXPORTER] = "none"
64-
os.environ[OTEL_METRICS_EXPORTER] = "none"
64+
os.environ[OTEL_METRICS_EXPORTER] = "console"
6565
os.environ[OTEL_LOGS_EXPORTER] = "none"
6666
os.environ[OTEL_TRACES_SAMPLER] = "traceidratio"
6767
os.environ[OTEL_TRACES_SAMPLER_ARG] = "0.01"

0 commit comments

Comments
 (0)