Skip to content

docs: fix tests rerouted by a refactor instead of deleting them - #42

Merged
systemfsoftware-bot merged 1 commit into
mainfrom
docs/port-tests-across-moved-boundaries
Nov 30, 2026
Merged

systemfsoftware-bot merged 1 commit into
mainfrom
docs/port-tests-across-moved-boundaries

Conversation

@systemfsoftware-maker

Copy link
Copy Markdown
Collaborator

What

SF-TST-5 in CODING_STANDARDS.md now reads:

Fix a test whose only fault is how it reaches the code (an internal import, a real clock, or a boundary, entrypoint or protocol that moved while the behaviour stayed).

The paragraph is reflowed to the file's 80-column wrap (deno fmt). Nothing else in the rule changed: "never rewrite, retitle, or replace it" and "Deleting a worthless test is welcome and does not count as lost coverage" stay verbatim, so a deleted test never owes a replacement.

Why

A test a refactor only re-routed - its boundary, entrypoint or protocol moved while its behaviour stayed - was previously deletable as covering "removed behaviour", although the behaviour survived. The rule now fixes such a test instead, while keeping the deletion of worthless tests cheap.

Verification

  • Pre-commit hook ran deno task check; commit-msg hook ran commitlint.
  • Pending off-host acceptance: the required check job (.github/workflows/ci.yml), which runs the same deno task check on this head.

- SF-TST-5 now lists a boundary, entrypoint or protocol that moved while the
  behaviour stayed among the reach faults a test may be fixed for.
- Deleting a worthless test stays welcome and never owes a replacement.
@mergify

mergify Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

This pull request is merged.

@systemfsoftware-bot
systemfsoftware-bot merged commit 574e8a1 into main Nov 30, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants