forked from manveru/ramaze
-
Notifications
You must be signed in to change notification settings - Fork 37
Making bacon more quiet
Michel Blanc edited this page Aug 11, 2012
·
1 revision
Sometimes, you don't want to see backtraces in your test output.
bacon accepts a -Q
argument to disable them.
If you use rake to start your tests, you can set backtrace on/off by setting an environment variable. You can then check for this variable in your rake task :
Bacon.const_set :Backtraces, false unless ENV['BACON_MUTE'].nil?
Starting your rake task like this (assuming the spec task starts your tests) :
BACON_MUTE=1 rake spec
will suppress bacon backtraces.
- Website
- Google Groups
- User Guide
- [#ramaze on the Freenode network] (http://webchat.freenode.net/?channels=ramaze)