github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

thoughtbot / quietbacktrace

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 46
    • 2
  • Source
  • Commits
  • Network (2)
  • Issues (0)
  • Downloads (0)
  • Wiki (3)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (2)
    • master ✓
    • match_rails
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Suppresses the noise in your Test::Unit backtraces — Read more

  cancel

http://www.thoughtbot.com/projects/quietbacktrace

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

bumping gem to 1.1.7 
dancroak (author)
Fri Jun 26 08:26:36 -0700 2009
commit  95332f416e32293f9f9777f6e6035fd9d2412bc3
tree    ff566dd9d4cff93d13106924ff8271cc2b2ddfdc
parent  cb8e610ca2ac2c62da61c0c6178b6d5f16a90036
quietbacktrace /
name age
history
message
file .gitignore Sun Mar 01 09:51:13 -0800 2009 removing mailing list line from README, since w... [dancroak]
file MIT-LICENSE Loading commit data...
file README.markdown Thu Mar 26 11:29:33 -0700 2009 README typo. BacktraceCleaner is a class namesp... [dancroak]
file Rakefile Fri Jun 26 08:26:36 -0700 2009 bumping gem to 1.1.7 [dancroak]
directory lib/ Fri Jun 26 08:21:47 -0700 2009 Fix for Ruby 1.9. Signed-off-by: Dan Croak <dc... [djanowski]
file quietbacktrace.gemspec Fri Jun 26 08:26:36 -0700 2009 bumping gem to 1.1.7 [dancroak]
directory test/ Fri Jun 26 08:21:47 -0700 2009 Fix for Ruby 1.9. Signed-off-by: Dan Croak <dc... [djanowski]
README.markdown

Quiet Backtrace

Quiet Backtrace suppresses the noise in your Test::Unit backtrace. It also provides hooks for you to add additional silencers and filters.

Install

sudo gem install thoughtbot-quietbacktrace --source=http://gems.github.com

Usage

Silencers remove lines from the backtrace. Create your own:

# Will reject all lines that include the word "mongrel", 
# like "/gems/mongrel/server.rb" or "/app/my_mongrel_server/rb"
backtrace_cleaner = QuietBacktrace::BacktraceCleaner.new
backtrace_cleaner.add_silencer { |line| line =~ /mongrel/ }

Filters modify the output of backtrace lines. Create your own:

# Will turn "/my/rails/root/app/models/person.rb" into "/app/models/person.rb"
backtrace_cleaner = QuietBacktrace::BacktraceCleaner.new
backtrace_cleaner.add_filter { |line| line.gsub(Rails.root, '') }

Requirements

  • Test::Unit

Resources

  • project site

Authors

  • Dan Croak
  • James Golick
  • Joe Ferris

Special thanks to the Boston.rb group for cultivating this idea at our inaugural hackfest.

Copyright (c) Dan Croak, James Golick, Joe Ferris, thoughtbot, inc. (the MIT license)

Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server