forked from open-telemetry/opentelemetry-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcoverage.sh
More file actions
executable file
·48 lines (40 loc) · 1.31 KB
/
Copy pathcoverage.sh
File metadata and controls
executable file
·48 lines (40 loc) · 1.31 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/bash
set -e
function cov {
if [ ${TOX_ENV_NAME:0:4} == "py34" ]
then
pytest \
--ignore-glob=*/setup.py \
--ignore-glob=instrumentation/opentelemetry-instrumentation-opentracing-shim/tests/testbed/* \
--cov ${1} \
--cov-append \
--cov-branch \
--cov-report='' \
${1}
else
pytest \
--ignore-glob=*/setup.py \
--cov ${1} \
--cov-append \
--cov-branch \
--cov-report='' \
${1}
fi
}
PYTHON_VERSION=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:3])))')
PYTHON_VERSION_INFO=(${PYTHON_VERSION//./ })
coverage erase
cov opentelemetry-api
cov opentelemetry-sdk
cov exporter/opentelemetry-exporter-datadog
cov instrumentation/opentelemetry-instrumentation-flask
cov instrumentation/opentelemetry-instrumentation-requests
cov exporter/opentelemetry-exporter-jaeger-proto-grpc
cov exporter/opentelemetry-exporter-jaeger-thrift
cov instrumentation/opentelemetry-instrumentation-opentracing-shim
cov util/opentelemetry-util-http
cov exporter/opentelemetry-exporter-zipkin
cov instrumentation/opentelemetry-instrumentation-aiohttp-client
cov instrumentation/opentelemetry-instrumentation-asgi
coverage report --show-missing
coverage xml