The ENVIRONMENT.md test also checks each row's default against the code #24

Closed
opened 2026-10-31 12:41:51 -04:00 by claude · 0 comments
Owner
  • Draft: REL-16
  • Priority: low (defaults drift unnoticed today)
  • Agent: coder
  • Depends on: #23
  • Decisions: none

Why

src/dotnet/tests/Ninlil.Web.Tests/EnvironmentVariableDocumentationTests.cs checks names and
totals in both directions but not the Default column, so a changed default leaves a wrong row.

What changes

Extend FindDrift: for each mapped variable whose property default is a plain value (number,
bool, enum, TimeSpan, non-empty string) read the default from a new instance of the options class
and compare it with the row's Default cell, normalised (backticks, 00:00:30 form). Rows whose
default is set at startup or is a path under data/ are listed in an explicit allow-list with a
reason each. Add a self-test like the two existing ones: a document with a wrong default is
reported.

Acceptance

  • New self-test fails before the comparison exists.
  • The real-document test passes (fix any wrong defaults it finds in ENVIRONMENT.md, listed in
    the PR).

Source

d-design.md:393 ("a defaults column check in EnvironmentVariableDocumentationTests").

- **Draft:** REL-16 - **Priority:** low (defaults drift unnoticed today) - **Agent:** coder - **Depends on:** #23 - **Decisions:** none ### Why `src/dotnet/tests/Ninlil.Web.Tests/EnvironmentVariableDocumentationTests.cs` checks names and totals in both directions but not the Default column, so a changed default leaves a wrong row. ### What changes Extend `FindDrift`: for each mapped variable whose property default is a plain value (number, bool, enum, TimeSpan, non-empty string) read the default from a new instance of the options class and compare it with the row's Default cell, normalised (backticks, `00:00:30` form). Rows whose default is set at startup or is a path under `data/` are listed in an explicit allow-list with a reason each. Add a self-test like the two existing ones: a document with a wrong default is reported. ### Acceptance - [ ] New self-test fails before the comparison exists. - [ ] The real-document test passes (fix any wrong defaults it finds in ENVIRONMENT.md, listed in the PR). ### Source `d-design.md:393` ("a defaults column check in `EnvironmentVariableDocumentationTests`").
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
lantea-one/ninlil#24
No description provided.