Skip to content

VER RESULT ROUTE

github-actions[bot] edited this page Jul 25, 2026 · 21 revisions

Verification: Result Page Route Integration Tests

Metadata

Covers the HTTP endpoint and logic of the final test results page against REQ-VERIFICATION-SCORING, REQ-SSR-STAGE-FLOW, and REQ-SESSION-STATE.

Code under verification

  • routes/result.tsx — implements Hono routes for GET /result, rendering the final results page with the computed score and truthfulness.

Tests

  • tests/result_route_test.ts (deno test + Hono app.request):
    • GET /result redirects to /stage/1 when no session cookie;
    • GET /result redirects to /stage/2 when no result in session;
    • GET /result renders score and truthfulness;
    • GET /result renders a link to restart.

Requirement coverage

  • Result display — GET request returns server-rendered HTML showing the calculated final score and truthfulness metrics.
  • GET/POST/302 flow — GETs without valid session states or completed results redirect to the appropriate initial stages (/stage/1 or /stage/2).

Source: docs/requirements/verifications/VER-RESULT-ROUTE.md

Clone this wiki locally