Skip to content

Derive config doc coverage tests from JsonSchema - #1854

Merged
max-sixty merged 1 commit into
mainfrom
project-config-section-test
Apr 1, 2026
Merged

max-sixty merged 1 commit into
mainfrom
project-config-section-test

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Replace hand-curated required_sections arrays in test_config_docs_include_all_sections and test_project_config_docs_include_all_sections with section lists derived from valid_user_config_keys() / valid_project_config_keys() (powered by the existing JsonSchema derive). Adding a new field to ProjectConfig or UserConfig now automatically fails the test if docs aren't updated — no need to also update the test.

Follows up on #1844 which added the project config test with a hand-curated list.

This was written by Claude Code on behalf of @max-sixty

Replace hand-curated required_sections arrays with schema-derived section
lists so adding a new field to ProjectConfig or UserConfig automatically
fails the test if docs aren't updated.

Co-Authored-By: Claude <[email protected]>
@max-sixty
max-sixty merged commit 8c09fd6 into main Apr 1, 2026
23 checks passed
@max-sixty
max-sixty deleted the project-config-section-test branch April 1, 2026 03:10
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