Skip to content

Testing & Validation

Previous: Deployment
Next: Demo Guide

The test suite validates backend logic for tickets, SLA behavior, AI decision logging, and metrics.

1) Test Runner

  • Tests run with pytest.
  • Typical command:
python -m pytest

2) What Is Tested

The current coverage in tests/test_sla_ai_metrics.py validates:

  • SLA deadline computation.
  • SLA state transitions.
  • Escalation and breach handling.
  • AI log creation and feedback updates.
  • System metrics aggregation.

3) Current automated coverage

  • Repository includes targeted backend tests in tests/test_sla_ai_metrics.py.
  • These tests focus on SLA calculations/transitions, AI log feedback behavior, and metrics computation.

4) What it proves

  • Ticket timing rules behave as documented.
  • Breach and escalation logic work as expected.
  • AI feedback and metrics updates are wired end to end.

5) Manual checks

  • test.http can be used for quick API checks.
  • Dashboard pages can be checked against the same API responses.
  1. Run backend test suite.
  2. Smoke test login + dashboard loading.
  3. Create/update/escalate/complete one ticket.
  4. Validate metrics and audit updates.

Previous: Deployment
Next: Demo Guide