Let say I've previously set up a super-swish test framework for a legacy system. That is feature A existed long before the test for feature A. Feature B, C and D come along and without us realising, at some point break the test for feature A.
We want to find out which of the features did that.
Now I want to run:
git bisect <bad> <good>
git run ./swish_test_suite.sh
The issue is that the code files that test feature A came in between <bad>
and <good>
. I've tried just manually extracting out the code, but then various configurations, and paths to test data break (fragile code?).
Is there a way to tell git bisect
to ignore a folder? I can imagine that going horribly wrong sometimes, but I'm guessing that might be easier than alternatives.
It's not solved here How can I ignore a directory when doing a Git bisect? as that covers build folders, where the solution is to remove them from the repo, but I want to keep my tests commited!
This git bisect with feature branches / later commits are needed to build is a little different too, as I'm not using patches or feature branches (should I?) Also the solutions seem to just be for manually running it, not git bisect run
ning it!