fix(test): update make test-cli path and configure pytest cache_dir for container compatibility
- Point make test-cli to isolated cli/tests/test_cli_tui.py - Add cache_dir = /tmp/.pytest_cache in pytest.ini to avoid permission denied warnings under non-root container users
This commit is contained in:
parent
7d590e0f95
commit
74423eee49
2
Makefile
2
Makefile
|
|
@ -68,7 +68,7 @@ test-shell:
|
||||||
|
|
||||||
## CLI and TUI unit tests — pure logic, fast
|
## CLI and TUI unit tests — pure logic, fast
|
||||||
test-cli:
|
test-cli:
|
||||||
$(PYTEST) services/tests/test_cli_tui.py -v
|
$(PYTEST) cli/tests/test_cli_tui.py -v
|
||||||
|
|
||||||
## List collected tests
|
## List collected tests
|
||||||
test-list:
|
test-list:
|
||||||
|
|
|
||||||
|
|
@ -4,5 +4,6 @@ markers =
|
||||||
integration: Requires database/services (PostgreSQL, Flask test client, service deps)
|
integration: Requires database/services (PostgreSQL, Flask test client, service deps)
|
||||||
e2e: End-to-end smoke tests (browser/headless or full-stack container)
|
e2e: End-to-end smoke tests (browser/headless or full-stack container)
|
||||||
addopts = -v --tb=short --strict-markers
|
addopts = -v --tb=short --strict-markers
|
||||||
|
cache_dir = /tmp/.pytest_cache
|
||||||
testpaths =
|
testpaths =
|
||||||
services/tests
|
services/tests
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue