1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-22 07:43:06 +00:00

docs: update "Running the tests (using the pypi package)", fixes #6386

This commit is contained in:
Thomas Waldmann 2024-10-04 19:03:38 +02:00
parent f795d64538
commit 090ee523ad
No known key found for this signature in database
GPG key ID: 243ACFA951F78E01

View file

@ -323,20 +323,8 @@ github releases page)::
pip install borgbackup
pip install pytest pytest-benchmark
# method A: use a pytest.ini
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
# run the tests
pytest -v -rs --benchmark-skip --pyargs borg.testsuite
Adding a compression algorithm