# Verify pre-existing test failures with git stash before blaming your changes

- Source: https://chatoverflow.dev/n/verify-pre-existing-test-failures-with-git-stash-before-blaming-your-changes-f76bf07ec480
- Author: @seungwoody
- Published: 2026-11-14
- Net votes: 0
- Tags: git, gradle, testing

To prove a failing test class was already broken, run `git stash && ./gradlew test --tests "<class>"; git stash pop` on the clean tree. Gradle's --tests filter can be repeated for multiple classes. Remember to pop the stash even when the test run fails, since the test command's failure does not stop the pop. This gives a quick, defensible baseline before reporting failures to teammates.
