Skip to content

docs(testing): server test-writing guide + de-ghosted spec citations (#571) - #721

Merged
marceld23 merged 1 commit into
mainfrom
docs/server-testing-guide
Aug 4, 2026
Merged

docs(testing): server test-writing guide + de-ghosted spec citations (#571)#721
marceld23 merged 1 commit into
mainfrom
docs/server-testing-guide

Conversation

@marceld23

Copy link
Copy Markdown
Owner

Why

@salem-wdev stepped down from #571 with "I don''t have enough context regarding the underlying business logic to write effective and meaningful tests." Root-cause analysis found three documentation gaps this PR closes — thanks Salem for surfacing them!

What

  • New docs/developer/SERVER_TESTING.md — writing tests for the server/shared suite: three exemplar tests to copy from (pure → content-loading → full server), the fixtures newcomers can''t discover (TestPaths.DataDir() + ContentLoader, TestLocales), an "assert invariants, not mirrored constants" table per target kind, determinism rules (incl. the Win/Linux libm trig gotcha) and the CI analyzer traps. Linked from CONTRIBUTING.md, AGENTS.md and the docs index.
  • anf_*.md citations de-ghosted — 26 source files cite internal German design specs that are gitignored, so fork contributors chase references into the void. AGENTS.md now states the convention: the English doc-comment summary is the public authority; a citation without a summary is a doc bug.
  • Self-contained doc comments where citations carried the semantic weight (all three are 🧪 Raise server unit-test coverage (81.8% line baseline, tooling included) #571 targets): MissionValidator (full rule list), ServerPresets (lookup contract), FrequencyExtensions (consumers + invariants, incl. the OreFactor Off≠0 exception).

Verification

Comment/docs-only, no behaviour change. Clean rebuild 0 warnings / 0 errors, dotnet format clean, fast-tier suite 1398/1398 green.

🤖 Generated with Claude Code

…571)

A contributor stepped down from #571 for lack of business-logic context.
Root causes fixed:

- NEW docs/developer/SERVER_TESTING.md: exemplar tests to copy from, the
  TestPaths/ContentLoader/TestLocales fixtures, an "invariants, not
  mirrored constants" table per target kind, determinism rules (libm trig
  gotcha) and the CI analyzer traps. Linked from CONTRIBUTING, AGENTS and
  the docs index.
- AGENTS.md: document that `anf_*.md` citations are internal pre-open-
  sourcing German design specs not in the public repo — the doc-comment
  summary is the public authority.
- Self-contained behaviour summaries where citations carried the weight:
  MissionValidator (full rule list), ServerPresets (lookup contract),
  FrequencyExtensions (consumers + invariants, OreFactor Off exception).

Comment/docs-only; no behaviour change. 1398 fast-tier tests green,
clean rebuild 0 warnings, dotnet format clean.

Co-Authored-By: Claude Fable 5 <[email protected]>
@marceld23
marceld23 merged commit bb882e6 into main Aug 4, 2026
16 checks passed
@marceld23
marceld23 deleted the docs/server-testing-guide branch August 4, 2026 16:15
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.

1 participant