-
Notifications
You must be signed in to change notification settings - Fork 0
CI_CONFIG
scheilch edited this page Mar 8, 2026
·
1 revision
This file contains centralized configuration for CI/CD pipelines, GitHub workflows, and pre-commit hooks.
Both backend and frontend enforce 80% minimum coverage:
- Threshold: 80%
-
Command:
pytest --cov=opencloudtouch --cov-report=xml --cov-report=term-missing --cov-fail-under=80 -
Configuration:
backend/pytest.ini
- Threshold: 80% (lines, functions, branches, statements)
-
Command:
npm run test:coverage -
Configuration:
frontend/vitest.config.js
-
Unit Tests:
pytest tests/unit -
Integration Tests:
pytest tests/integration -
All Tests:
pytest(includes unit + integration, excludes real device tests by default)
-
Unit Tests:
npm run testornpm run test:coverage -
E2E Tests (Cypress):
npm run test:e2e(mock mode) ornpm run test:e2e:debug(headed mode)
- Python: 3.13
- Node.js: 20
-
GitHub Workflow (
.github/workflows/ci-cd.yml)- Backend tests with 80% coverage
- Frontend unit tests with 80% coverage
- Frontend E2E tests (Cypress)
- Linting (ruff, black, mypy)
-
Pre-commit Hook (
pre-commit.ps1)- Backend tests with 80% coverage
- Frontend unit tests with 80% coverage
- Frontend E2E tests
-
Local Development
- Backend:
backend/pytest.ini - Frontend:
frontend/vitest.config.js
- Backend:
To change coverage thresholds, update these files:
-
This file (
.ci-config.json) - documentation -
Backend:
-
backend/pytest.ini(comment) -
.github/workflows/ci-cd.yml(--cov-fail-under=XX)
-
-
Frontend:
-
frontend/vitest.config.js(thresholdsobject)
-
-
Pre-commit Hook:
-
pre-commit.ps1(comments + commands)
-
🇩🇪 Benutzerhandbuch
🇬🇧 User Guide
Development
API & Architecture
- REST API
- ADR 001 Clean Architecture
- ADR 002 FastAPI App State
- ADR 003 SSDP Discovery
- ADR 004 React/TS/Vite
Technical Reference
Legal