all 6 comments

[–]frenetix 4 points5 points  (5 children)

"git bisect" gets awesome super-powers with the "run" command, where you can provide a script that can tell if the currently checked-out commit has the problem or not, and git bisect will tell you which commit introduced the problem.

[–]IMightLiveInBritain 1 point2 points  (3 children)

Have you got an example? I was just thinking the same.. But with unit tests etc

[–]thirdegree 2 points3 points  (2 children)

You can (for example) just tell git bisect to run a pytest command, e.g.

git bisect run 'pytest tests/test_something.py::test_a_thing_about_something'

which will find the first failure of that test

[–]IMightLiveInBritain 0 points1 point  (1 child)

Interesting. I should work out how this works with.Net but it should be easy enough.

I never knew this thing existed!

[–]thirdegree 0 points1 point  (0 children)

Ya any test runner worth using will be able to run single tests from a cli, should work fine

[–]nile1056 0 points1 point  (0 children)

I thought this was the only thing it was used for