Skip to content
Snippets Groups Projects
Commit 6484beef902c authored by Georges Racinet's avatar Georges Racinet
Browse files

Running doctests, with new `run-all-tests` script

A side benefit of `--doctest-modules` is that it will import all
Python modules (looking for doctests in them), and by doing so,
it will find missing `__init__.py` files and other inconsistent
imports.
parent 52f3af804ffe
No related branches found
No related tags found
No related merge requests found
Pipeline #7039 passed with warnings
......@@ -27,7 +27,8 @@
script:
- pip3 freeze
- flake8 --exclude stub hgitaly hgext3rd
- PYTHONPATH=/ci/repos/mercurial pytest --cov hgitaly --cov-config=.coveragerc -v
- PYTHONPATH=/ci/repos/mercurial ./run-all-tests
tests-hg-stable:
stage: compat
......@@ -43,7 +44,7 @@
- /ci/repos/mercurial/hg version --debug
- PYTHONPATH=/ci/repos/mercurial python3 -c "from mercurial import util; print(util.version())"
- PYTHONPATH=/ci/repos/mercurial PATH=$HOME/.local/bin:$PATH
pytest --cov hgitaly --cov-config=.coveragerc -v
./run-all-tests
tests-hg-default:
stage: compat
......@@ -60,4 +61,4 @@
- /ci/repos/mercurial/hg version --debug
- PYTHONPATH=/ci/repos/mercurial python3 -c "from mercurial import util; print(util.version())"
- PYTHONPATH=/ci/repos/mercurial PATH=$HOME/.local/bin:$PATH
pytest --cov hgitaly --cov-config=.coveragerc -v
./run-all-tests
#!/bin/sh
set -ue
pytest --doctest-modules --cov hgitaly --cov-config=.coveragerc -v $@
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment