Skip to content

Commit fb33b46

Browse files
committed
Add new poetry tasks for pytest
Updated the test task to now run with --ff which runs failed tests from the last run first Added retest, which runs pytest with --lf this only runs the failed tests from the last test run
1 parent cea94b9 commit fb33b46

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ precommit = "pre-commit install"
6262
build = "docker build -t ghcr.io/python-discord/bot:latest -f Dockerfile ."
6363
push = "docker push ghcr.io/python-discord/bot:latest"
6464
test-nocov = "pytest -n auto"
65-
test = "pytest -n auto --cov-report= --cov"
65+
test = "pytest -n auto --cov-report= --cov --ff"
66+
retest = "pytest -n auto --cov-report= --cov --lf"
6667
html = "coverage html"
6768
report = "coverage report"
6869

0 commit comments

Comments
 (0)