From e473e91d5fa0dc966ee27219d695a3fbfc54e7bb Mon Sep 17 00:00:00 2001 From: Manuel Barkhau Date: Wed, 10 Jul 2019 09:42:53 +0200 Subject: [PATCH] use --failed-furst for make devtest --- makefile | 4 ++-- requirements/development.txt | 13 +++++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/makefile b/makefile index ed0263c..cd5581f 100644 --- a/makefile +++ b/makefile @@ -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__"; diff --git a/requirements/development.txt b/requirements/development.txt index b80a28d..1c627c1 100644 --- a/requirements/development.txt +++ b/requirements/development.txt @@ -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