From: Karl O. Pinc Date: Tue, 24 Nov 2020 17:01:12 +0000 (-0600) Subject: Add check-debug target X-Git-Url: https://papio.biology.duke.edu/gitweb/?a=commitdiff_plain;h=9fe6c55b90a3f82610f628977522e1a582e6edc2;p=pgwui_core Add check-debug target --- diff --git a/Makefile_pgwui.mk b/Makefile_pgwui.mk index f0604ed..4787deb 100644 --- a/Makefile_pgwui.mk +++ b/Makefile_pgwui.mk @@ -1,4 +1,4 @@ -# Copyright (C) 2016, 2017, 2018, 2019 The Meme Factory, Inc. +# Copyright (C) 2016, 2017, 2018, 2019, 2020 The Meme Factory, Inc. # http://www.karlpinc.com/ # This file is part of PGWUI. @@ -139,6 +139,16 @@ check-integration: devel/pytest devel/pytest/bin/py.test -m integrationtest \ --cov=pgwui_${PGWUI_NAME} tests +## check-debug Start a regression test and drop into the Pdb +## debugger. Variables designate the test file +## and test function, i.e.: +## FILE=test_mymodule.py TEST=test_somefunction \ +## make check-debug +.PHONY: check-debug +check-debug: devel/pytest + devel/pytest/bin/flake8 . + devel/pytest/bin/py.test --trace tests/${FILE}::${TEST} + ## pudb Run the python pudb debugger .PHONY: pudb pudb: devel/pudb