CI / build (push) Has been cancelled
- Archive 79 completed framework-dev tasks from tasks/ -> tasks/complete/ - status.py: add --cleanup-done and --install-cleanup-schedule commands - Add scripts/automaton-cleanup.sh for periodic task archiving - Dashboard: rename 'Background' tab -> 'Agent', 'Cleanup' agent -> 'Completed Task Archiver', remove redundant group headers and pill badges, dim inactive agent placeholders - .rules.md: add Self-Documenting UI Names rule - New tests: test_cleanup_done.py, expanded test_app.py and test_task.py
1.2 KiB
1.2 KiB
SPEC: Add pytest Test Suite
Goal
Add automated tests for the dashboard and the new VRAM detection script.
Requirements
- Create
tests/test_scope.pyfor scope detection. - Create
tests/test_task.pyfor task state determination and sub-task parsing. - Create
tests/test_board.pyfor Kanban board grouping and filtering. - Create
tests/test_stats.pyfor statistics calculations. - Create
tests/test_config.pyfor config validation and defaults. - Create
tests/test_app.pyfor dashboard HTTP API endpoints and path-traversal guard. - Create
tests/test_vram_detect.pyfor the VRAM detector using mocked system data. - Update
pyproject.tomlwith optional dependencies:testextra:pytestdashboardextra:inotify(optional)
- Update
.gitignorefor.pytest_cache/.
Acceptance Criteria
python -m pytestdiscovers and passes all tests.- Tests exercise state determination, filtering, API responses, config validation, and VRAM detection.
pyproject.tomlincludes the optional dependency groups.
Non-Goals
- Achieving 100% coverage.
- Testing shell scripts (handled separately).
Stop Condition
When all acceptance criteria are met, output "CONTRACT_MET".