Repository navigation
Conversation
A merge that resolves a conflict by taking one side can drop tests the base added, and nothing noticed: the suite still passes without them. `pre-review.py --pre-push` now reads every test under Tests at the base and at the head. A test is named by its function wherever its file is. One whose body is the same, or nine tenths alike, under a new name is counted as renamed; one a commit of the branch removes is listed with that commit; any other test the base has and the head lacks fails the check and is named. It takes about half a minute. Generated output: unchanged Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HLuVQLHq43QvdYBYGWTdSo
The arguments of a parameterized test may hold Swift source with functions of its own. The function after the attribute is the next one at the attribute's indentation, so such a test is no longer read as missing. Generated output: unchanged Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HLuVQLHq43QvdYBYGWTdSo
dfed
marked this pull request as ready for review
November 30, 2026 15:58
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.
Requested by Dan · project thread
Summary
A merge that resolves a conflict by taking one side can drop tests the base added. Nothing noticed when that happened: the suite still passes without them, and the coverage checks only see lines, not tests.
pre-review.py --pre-pushnow has a step, "dropped tests", that reads every test underTestsat the base (the commit named, not the merge base, which after a merge is the base itself) and at the head.A test is named by its function wherever its file is, so one that moved between files is not missing. The step takes about half a minute on this repository's tests.
Generated output: unchanged
Tests
The skill's self-test gains cases for reading a file's tests (a helper is none, a body does not end inside a multi-line string, and a parameterized test whose arguments hold source text is the function after the arguments), the rename match, two tests of one name, the commit that removes a name, and the step's three outcomes; a block without the step is not a pass. The step was also run on a real branch whose merges had dropped tests, and named them.
Found and not fixed
https://claude.ai/code/session_01HLuVQLHq43QvdYBYGWTdSo
Generated by Claude Code