← Back to team overview

launchpad-reviewers team mailing list archive

[Merge] ~jugmac00/turnip:add-pytest-makefile-target into turnip:master

 

Jürgen Gmach has proposed merging ~jugmac00/turnip:add-pytest-makefile-target into turnip:master.

Commit message:
Add makefile target for pytest

Requested reviews:
  Launchpad code reviewers (launchpad-reviewers)

For more details, see:
https://code.launchpad.net/~jugmac00/turnip/+git/turnip/+merge/414109
-- 
Your team Launchpad code reviewers is requested to review the proposed merge of ~jugmac00/turnip:add-pytest-makefile-target into turnip:master.
diff --git a/Makefile b/Makefile
index 04d28a6..98d40a1 100644
--- a/Makefile
+++ b/Makefile
@@ -80,6 +80,15 @@ bootstrap-test:
 test: $(ENV) bootstrap-test
 	$(PYTHON) -m unittest discover $(ARGS) turnip
 
+# XXX jugmac00 2022-01-13:
+# this is a temporary solution to enable selecting single tests more easily
+# test setup will be redone in https://warthogs.atlassian.net/browse/LP-598
+# sample command:
+# make runpytest ARGS="-k filtered_by_blob_paths"
+runpytest: $(ENV) bootstrap-test
+	$(PYTHON) -m pip install pdbpp pytest
+	$(PYTHON) -m pytest $(ARGS)
+
 clean:
 	find turnip -name '*.py[co]' -exec rm '{}' \;
 	rm -rf $(ENV) $(PIP_CACHE)