Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Backtrace silencers not working in Autotest #74

tklenke opened this Issue · 5 comments

2 participants


I have the following in my config/initializers/backtrace_silencers.rb
Rails.backtrace_cleaner.add_silencer { |line| line =~ /jruby-1.7.0.preview2/

If I run Rake Test -- the silencer works as advertised

But under Autotest it does not. I have checked and it appears that $DEBUG is set to false.

Any thoughts?

@blowmage blowmage was assigned

I'll investigate.


Thanks for looking into it.
Dug a bit more and found this gem
Would seem to be more appropriate to be included with minitest-rails?


I'm more interested in why $DEBUG is false. If that is true then the existing silencer code should be sufficent.


Well. I am not setting it explicitly. I have run grep -r 'DEBUG' from the root of my project directory to make sure that nothing is setting it. I am running autotest with no options from the command prompt. I have a list of the references to $DEBUG in my .rvm/.../gems directory if that would help, but none of those are setting the variable only referencing it.

I have tried setting it explicitly to true by adding an initializer to my .autotest file. That seems to indicate that the variable is set to true, but I'm still getting the full backtrace. FYI, I am using JRuby. Maybe that is the issue? But again, if I run rake test then the silencers work as advertised.


Closing because I could never reproduce. If you can reproduce please reopen this issue with the reproduction.

@blowmage blowmage closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.