Skip to content

test(tests): remove tests that hold a sentence of a document - #7249

Merged
dan-petty merged 2 commits into
mainfrom
test/7243-remove-sentence-tests
Nov 25, 2026
Merged

dan-petty merged 2 commits into
mainfrom
test/7243-remove-sentence-tests

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

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 grep command as their proof. No source code changes.

Closes #7243

Change: openspec/changes/archive/2026-11-25-7243-remove-sentence-tests/

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 dan-petty added type/test Type test: a new or changed test scope/tests The test suite, its fixtures, fakes and floor labels Nov 25, 2026
@dan-petty
dan-petty marked this pull request as ready for review November 25, 2026 21:16
@dan-petty
dan-petty merged commit f269b81 into main Nov 25, 2026
26 checks passed
@dan-petty
dan-petty deleted the test/7243-remove-sentence-tests branch November 25, 2026 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/tests The test suite, its fixtures, fakes and floor type/test Type test: a new or changed test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test(tests): remove tests that hold a sentence of a document

1 participant