use --failed-furst for make devtest

This commit is contained in:
Manuel Barkhau 2019-07-10 09:42:53 +02:00
parent 5394d290ef
commit e473e91d5f
2 changed files with 15 additions and 2 deletions

View file

@ -426,7 +426,6 @@ ipy:
## Like `make test`, but with debug parameters
.PHONY: devtest
devtest:
@rm -rf ".pytest_cache";
@rm -rf "src/__pycache__";
@rm -rf "test/__pycache__";
@ -438,6 +437,7 @@ ifdef FILTER
--verbose \
--capture=no \
--exitfirst \
--failed-first \
-k $(FILTER) \
test/ src/;
else
@ -448,10 +448,10 @@ else
--verbose \
--capture=no \
--exitfirst \
--failed-first \
test/ src/;
endif
@rm -rf ".pytest_cache";
@rm -rf "src/__pycache__";
@rm -rf "test/__pycache__";

View file

@ -34,3 +34,16 @@ snakeviz
# add one after you've tested it and found it to be actually useful.
ipython # nuff said
# A command line utility to display dependency tree of the installed Python packages
# https://github.com/naiquevin/pipdeptree
#
# For graph output you will need to:
# $ sudo apt install -y graphviz
# $ pipdeptree --graph-output svg > requirements/tree.svg
pipdeptree
graphviz
# run failed tests first
pytest-cache