Skip to content

Review test coverage across the project #454

Description

@Variour

Context

Flagged during adversarial review of #452. That PR adds ~250 lines of new frontend state-machine logic (renderDiscoveredPeers, setupDiscoveredDevice, the wifi/update stall-timeout machinery in data/index.html) plus new mock-server simulation endpoints (simulateDiscoveredWifiConnect, simulateDiscoveredGraduate in server/index.js), and ships with zero corresponding test changes — server/index.test.js is untouched, so the PR's "36/36 passing" is the same count as before and verifies none of the new behavior.

This isn't specific to #452 — it's an example of a broader pattern worth checking project-wide.

Ask

Do a general pass over test coverage:

  • Where are the biggest gaps between shipped features and what server/index.test.js / other test files actually exercise?
  • Are there conventions we should adopt (e.g. "new endpoint or new frontend state machine needs a test") to stop this from recurring?
  • Is coverage tracked at all today, or only judged ad hoc per PR?

Not asking for 100% coverage — asking for a deliberate look at where the risk currently sits.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions