File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
{{cookiecutter.project_slug}} Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -51,8 +51,15 @@ clean-test: ## remove test and coverage artifacts
51
51
ruff : # # check style
52
52
ruff check
53
53
54
- test : # # run tests quickly with the default Python
55
- pytest
54
+ MAKECMDGOALS ?= .
55
+
56
+ test : # # Run all the tests, but allow for arguments to be passed
57
+ @echo " Running with arg: $( filter-out $@ ,$( MAKECMDGOALS) ) "
58
+ pytest $(filter-out $@ ,$(MAKECMDGOALS ) )
59
+
60
+ pdb : # # Run all the tests, but on failure, drop into the debugger
61
+ @echo " Running with arg: $( filter-out $@ ,$( MAKECMDGOALS) ) "
62
+ pytest --pdb --maxfail=10 --pdbcls=IPython.terminal.debugger:TerminalPdb $(filter-out $@ ,$(MAKECMDGOALS ) )
56
63
57
64
test-all : # # run tests on every Python version with uv
58
65
uv run --python=3.10 --extra test pytest
You can’t perform that action at this time.
0 commit comments