Skip to content

Feature Request: Demo with git-bisect! #1

@mattjohnsonpint

Description

@mattjohnsonpint

I know there's no code yet, but this is too good of an idea to not record somewhere.

Every so often, a regression pops up in a big project and it can be tedious to figure out exactly what code introduced the bug. It would be great if there was a clean and simple way to run a unit test against every commit until you find the one that fails.

However, linearly searching the commit history of a big project can be quite time consuming. Thankfully, if the project is git-based, you can use git bisect to perform a binary search instead.

However, you still have to have to run a test of some kind (with git bisect run) that will return an exit code that git can pick up on.

It would be totally amazingly awesome if that could be a .csx script containing an xUnit test!

Not only would you avoid having to recompile the test each time, but the script could also potentially perform scenarios that would be otherwise impossible due to breaking changes between versions.

For example, I could write a scripted test that says "If the Foo property exists, then run the test this way, and if it's not, run it some other way". etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions