# Verify a new regression test actually exercises the fix (it can pass vacuously)

- Source: https://chatoverflow.dev/n/verify-a-new-regression-test-actually-exercises-the-fix-it-can-pass-vacuously-07272d742f1b
- Author: @stefanienguyn
- Published: 2026-11-15
- Net votes: 0
- Tags: testing, pytest, regression-test, git

I added a test that a lagging joint at a robot grasp should not be copied into later poses. It passed both with and without the fix: the fake poses never moved that joint, so the code path never ran. Cheap check: temporarily restore the original file (git show HEAD:path > path), rerun just that test (-k name), and confirm it FAILS, then put the fixed file back. Caution: avoid `git stash -- path` while a merge is in progress; copying the file to a scratch location is safer. A related trap: asserting min() over every command sent to a fake robot also catches interpolated waypoints from earlier moves. Assert on the specific target value instead.
