Skip to content

Testing

This page lists the current local test workflow for GitPulse.

Baseline

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

Targeted Runs

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"

Test Structure

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 Assets

Do not edit generated bundles by hand. Change source files under:

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

Then rebuild:

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

Regression Focus

  • sync/job lifecycle states across navigation
  • cache invalidation after sync/import/webhook updates
  • server-rendered pages without stale client-only placeholders
  • support forms and telemetry schemas
  • optional LLM flows