Update test
DevPlace CI / test (push) Failing after 3h6m49s

This commit is contained in:
2026-06-12 07:43:44 +02:00
parent 5824786db6
commit 7d12415ea5
8 changed files with 30 additions and 45 deletions
+5 -13
View File
@@ -6,10 +6,8 @@ LOCUST_USERS ?= 20
LOCUST_SPAWN_RATE ?= 5
LOCUST_RUN_TIME ?= 120s
DEVPLACE_RATE_LIMIT ?= 1000000
TEST_WORKERS ?= auto
TEST_DIST ?= loadfile
.PHONY: install dev clean test test-serial test-headed test-headed-serial coverage coverage-headed coverage-html locust locust-headless
.PHONY: install dev clean test test-headed coverage coverage-headed coverage-html locust locust-headless
install:
pip install -e .
@@ -21,28 +19,22 @@ prod:
DEVPLACE_WEB_WORKERS=2 uvicorn devplacepy.main:app --host 0.0.0.0 --port 10500 --workers 2 --backlog 8192 --proxy-headers --forwarded-allow-ips '*'
test:
PLAYWRIGHT_HEADLESS=1 python -m pytest tests/ -n $(TEST_WORKERS) --dist $(TEST_DIST) --tb=line -x
test-serial:
PLAYWRIGHT_HEADLESS=1 python -m pytest tests/ -p no:xdist -v --tb=line -x
PLAYWRIGHT_HEADLESS=1 python -m pytest tests/ -x
test-headed:
PLAYWRIGHT_HEADLESS=0 python -m pytest tests/ -n $(TEST_WORKERS) --dist $(TEST_DIST) --tb=line -x
test-headed-serial:
PLAYWRIGHT_HEADLESS=0 python -m pytest tests/ -p no:xdist -v --tb=line -x
PLAYWRIGHT_HEADLESS=0 python -m pytest tests/ -x
coverage:
rm -f .coverage .coverage.*
COVERAGE_PROCESS_START=$(CURDIR)/.coveragerc PLAYWRIGHT_HEADLESS=1 \
python -m coverage run -m pytest tests/ -n $(TEST_WORKERS) --dist $(TEST_DIST) --tb=line
python -m coverage run -m pytest tests/
python -m coverage combine
python -m coverage report
coverage-headed:
rm -f .coverage .coverage.*
COVERAGE_PROCESS_START=$(CURDIR)/.coveragerc PLAYWRIGHT_HEADLESS=0 \
python -m coverage run -m pytest tests/ -p no:xdist --tb=line
python -m coverage run -m pytest tests/
python -m coverage combine
python -m coverage report