mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-23 00:07:38 +00:00
docs: update "Running the tests (using the pypi package)", fixes #6386
This commit is contained in:
parent
f795d64538
commit
090ee523ad
1 changed files with 2 additions and 14 deletions
|
@ -323,20 +323,8 @@ github releases page)::
|
||||||
pip install borgbackup
|
pip install borgbackup
|
||||||
pip install pytest pytest-benchmark
|
pip install pytest pytest-benchmark
|
||||||
|
|
||||||
# method A: use a pytest.ini
|
# run the tests
|
||||||
|
pytest -v -rs --benchmark-skip --pyargs borg.testsuite
|
||||||
cat >pytest.ini <<<EOF
|
|
||||||
[pytest]
|
|
||||||
python_files = testsuite/*.py
|
|
||||||
markers = allow_cache_wipe
|
|
||||||
addopts = -rs --benchmark-skip
|
|
||||||
EOF
|
|
||||||
|
|
||||||
pytest --pyargs borg.testsuite
|
|
||||||
|
|
||||||
# method B: give the options via the cmdline (each time you invoke the tests):
|
|
||||||
|
|
||||||
pytest -rs --benchmark-skip -o 'python_files=testsuite/*.py' -o 'markers=allow_cache_wipe' --pyargs borg.testsuite
|
|
||||||
|
|
||||||
|
|
||||||
Adding a compression algorithm
|
Adding a compression algorithm
|
||||||
|
|
Loading…
Reference in a new issue