utility for finding commits that cause regressions without knowing a starting point or ending point
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
lib
.gitignore
.rspec
Gemfile
README.md
Rakefile
git_filet.gemspec

README.md

git_filet

filet is a utility for finding commits that cause regressions without knowing a starting point or ending point.

Suppose that you find a bug in your production app. You'd like to figure out if this bug was introduced recently or whether it's always been an issue. filet takes a command that exits with a non-zero status when the bug in question is detected. It uses this command to determines the good and bad commits related to the bug.

For example, to figure out when your blogging system started creating duplicate comments, we start by writing a failing test:

# spec/regressions/comments_regression_spec.rb
require 'spec_helper'
describe CommentsController do
 it "should not duplicate comments" do
   expect {
     post :create, :text => 'hello'
   }.to change(Comment.count).by(1)
 end
end

To figure out the good and bad commits, run:

filet exec "rspec spec/regressions/comments_regression_spec.rb"