Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
pyMOR
pymor
Commits
0f27df46
Commit
0f27df46
authored
Jun 21, 2022
by
René Fritze
Browse files
[ci] allow setting `--cov` per test script
parent
5fe9f13f
Changes
2
Hide whitespace changes
Inline
Side-by-side
.ci/gitlab/common_test_setup.bash
View file @
0f27df46
...
...
@@ -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
.ci/gitlab/test_tutorials.bash
View file @
0f27df46
#!/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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment