Add check-debug target
authorKarl O. Pinc <kop@karlpinc.com>
Mon, 23 Nov 2020 20:13:56 +0000 (14:13 -0600)
committerKarl O. Pinc <kop@karlpinc.com>
Mon, 23 Nov 2020 20:13:56 +0000 (14:13 -0600)
Makefile_pgwui.mk

index f0604ed0f65a724237cdbd76bc98231ff72570eb..4787deb9fc5966c071bee2ee100e8eb4dd9b921d 100644 (file)
@@ -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