Repository navigation
Add coverage test for project config documentation - #1844
Merged
Merged
Conversation
Verifies all ProjectConfig sections ([list], [forge], [step.copy-ignored], [aliases]) appear in the project config example, deprecated [ci] does not, and at least one hook key is documented. Mirrors the existing test_config_docs_include_all_sections for user config. Co-Authored-By: Claude <[email protected]>
worktrunk-bot
approved these changes
Apr 1, 2026
max-sixty
added a commit
that referenced
this pull request
Apr 1, 2026
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_ Co-authored-by: Claude <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Mirrors
test_config_docs_include_all_sections(user config) for the project config side. Verifies that thePROJECT_CONFIG_START/PROJECT_CONFIG_ENDsection insrc/cli/mod.rsincludes allProjectConfigsections ([list],[forge],[step.copy-ignored],[aliases]), excludes deprecated[ci], and documents at least one hook key.Without this, a new field could be added to
ProjectConfigwithout appearing in the generatedwt.example.toml.