Repository navigation
test(tests): remove tests that hold a sentence of a document - #7249
Merged
Merged
Conversation
Remove 195 test functions that hold a sentence, a phrase, a heading or a count of a real document, prompt, template or skill, with the helpers and the snapshot that only they used. Seven tests of code lose one sentence line. The contract tests that compare a prompt with the source code stay.
dan-petty
marked this pull request as ready for review
November 25, 2026 21:16
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.
Many tests read a real document, instruction file, prompt, template or skill and asserted that it held a specific sentence, heading, phrase or count. Such a test failed on each edit of that text, although no code changed (owner decision of 2026-11-25, after #7229).
This change removes 195 such test functions, with their helpers and one snapshot. Seven tests of code lose one sentence line. Tests stay when their expected values come from the source code and a prompt must name each of them (fields of a reply model, enum values, limits, tool names), and when they apply a generic rule with no literal text of a real file (links, paths, a size cap, equal skill copies). Five spec scenarios that named a removed test now give a
git grepcommand as their proof. No source code changes.Closes #7243
Change:
openspec/changes/archive/2026-11-25-7243-remove-sentence-tests/