Skip to content

Commit

Permalink
opentracing-shim: add testbed for otshim (open-telemetry#727)
Browse files Browse the repository at this point in the history
This commit ports the OpenTracing testbed[1] to check that the ot-shim is
working as expected using different frameworks.

Gevent doesn't support context vars yet[2], so those tests are not compatible
with opentelemetry and were not ported.

[1] https://github.com/opentracing/opentracing-python/tree/master/testbed
[2] gevent/gevent#1407

Co-authored-by: Mauricio Vásquez <[email protected]>
Co-authored-by: alrex <[email protected]>
  • Loading branch information
3 people authored Jun 3, 2020
1 parent 0a12fd0 commit 325e221
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions scripts/coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,25 @@
set -e

function cov {
pytest \
--ignore-glob=*/setup.py \
--cov ${1} \
--cov-append \
--cov-branch \
--cov-report='' \
${1}
if [ ${TOX_ENV_NAME:0:4} == "py34" ]
then
pytest \
--ignore-glob=*/setup.py \
--ignore-glob=ext/opentelemetry-ext-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])))')
Expand Down

0 comments on commit 325e221

Please sign in to comment.