Preskočiť na obsah

Testovanie

Táto stránka popisuje aktuálny lokálny testovací workflow pre GitPulse.

Základná sada

Bash
1
2
3
4
5
6
python scripts/build_bundle.py --check
python scripts/check_static_artifacts.py
ruff check src tests scripts
ruff format --check src tests scripts
mypy src/app
pytest -q

Cielené spustenia

Bash
1
2
3
4
5
pytest tests/unit/
pytest tests/unit/test_compliance_engine.py
pytest tests/unit/test_sweep_automation.py -q
pytest tests/unit/test_pilot_telemetry.py -q
pytest -m "not performance"

Štruktúra testov

Text Only
tests/
+-- unit/
|   +-- test_compliance_engine.py
|   +-- test_dynamic_checks.py
|   +-- test_sweep_automation.py
|   +-- test_pilot_telemetry.py
|   +-- test_security.py
|   +-- test_frontend_resilience.py
+-- integration/
+-- load/

Frontend assety

Generované bundle súbory neupravujte ručne. Zdrojové zmeny patria do:

  • src/app/templates/static/js/_parts/
  • src/app/templates/static/js/*.js
  • src/app/templates/static/css/_parts/
  • src/app/templates/static/css/pages/

Potom rebuild:

Bash
python scripts/build_bundle.py
python scripts/check_static_artifacts.py

Regresné priority

  • sync/job stavy naprieč navigáciou
  • invalidácia cache po sync/import/webhook update
  • server-rendered stránky bez zastaraných client-only placeholderov
  • support formuláre a telemetry schémy
  • voliteľné LLM flow