From 3a674c0b13761dca37887e9b2fc2683698a713c2 Mon Sep 17 00:00:00 2001 From: "Karl O. Pinc" Date: Mon, 23 Nov 2020 14:08:51 -0600 Subject: [PATCH] Add check-debug target --- Makefile_pgwui.mk | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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 -- 2.34.1