[Tests] Trying to use upgraded pytest
This commit is contained in:
parent
8058a28765
commit
36d3b67662
|
|
@ -47,16 +47,17 @@ jobs:
|
||||||
rm -rf output
|
rm -rf output
|
||||||
rm -f tests/.local
|
rm -f tests/.local
|
||||||
pip3 install --upgrade coverage
|
pip3 install --upgrade coverage
|
||||||
|
pip3 install --upgrade pytest
|
||||||
coverage3 erase
|
coverage3 erase
|
||||||
# Create the caches with macros
|
# Create the caches with macros
|
||||||
coverage3 run src/kibot --help-outputs > /dev/null
|
coverage3 run src/kibot --help-outputs > /dev/null
|
||||||
# Individual run for specific tests
|
# Individual run for specific tests
|
||||||
# pytest-3 --log-cli-level debug -k "test_ibom_parse_fail" --test_dir output
|
# pytest --log-cli-level debug -k "test_ibom_parse_fail" --test_dir output
|
||||||
# Run the 90% faster tests (under 3 s)
|
# Run the 90% faster tests (under 3 s)
|
||||||
# Do it in parallel
|
# Do it in parallel
|
||||||
pytest-3 -v --durations=0 -m "not slow" -n 2 --test_dir output
|
pytest -v --durations=0 -m "not slow" -n 2 --test_dir output
|
||||||
# Run the slowest at the end and exit on the first error
|
# Run the slowest at the end and exit on the first error
|
||||||
pytest-3 -v --durations=0 -m slow -x --test_dir output
|
pytest -v --durations=0 -m slow -x --test_dir output
|
||||||
coverage3 combine
|
coverage3 combine
|
||||||
coverage3 report
|
coverage3 report
|
||||||
coverage3 html -d output/htmlcov
|
coverage3 html -d output/htmlcov
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue