Commit 0f27df46 authored by René Fritze's avatar René Fritze
Browse files

[ci] allow setting `--cov` per test script

parent 5fe9f13f
......@@ -32,9 +32,10 @@ export PYTHONHASHSEED=0
python -c "from matplotlib import pyplot" || true
PYMOR_VERSION=$(python -c 'import pymor;print(pymor.__version__)')
COV_OPTION=${COV_OPTION:---cov=}
# `--cov-report=` suppresses terminal output
COMMON_PYTEST_OPTS="--junitxml=test_results_${PYMOR_VERSION}.xml \
--cov-report= --cov --cov-config=setup.cfg --cov-context=test \
--cov-report= --cov-config=${PYMOR_ROOT}/setup.cfg --cov-context=test \
--hypothesis-profile ${PYMOR_HYPOTHESIS_PROFILE} ${PYMOR_PYTEST_EXTRA}"
pytest src/pymortests/docker_ci_smoketest.py
\ No newline at end of file
#!/bin/bash
THIS_DIR="$(cd "$(dirname ${BASH_SOURCE[0]})" ; pwd -P )"
COV_OPTION="--nb-coverage"
source ${THIS_DIR}/common_test_setup.bash
for fn in ${PYMOR_ROOT}/docs/source/tutorial*md ; do
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment