-
Notifications
You must be signed in to change notification settings - Fork 697
/
Copy pathcoverage.sh
executable file
·41 lines (34 loc) · 1 KB
/
coverage.sh
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
#!/bin/bash
set -e
function cov {
if [ ${TOX_ENV_NAME:0:4} == "py34" ]
then
pytest \
--ignore-glob=instrumentation/opentelemetry-instrumentation-opentracing-shim/tests/testbed/* \
--cov ${1} \
--cov-append \
--cov-branch \
--cov-report='' \
${1}
else
pytest \
--cov ${1} \
--cov-append \
--cov-branch \
--cov-report='' \
${1}
fi
}
coverage erase
cov opentelemetry-api
cov opentelemetry-sdk
cov exporter/opentelemetry-exporter-datadog
cov instrumentation/opentelemetry-instrumentation-flask
cov instrumentation/opentelemetry-instrumentation-requests
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