rails/railties/test
Andrew Novoselac 9ac526a21a Unsilence BacktraceCleaner with BACKTRACE without removing silencers
rails/rails@957a3e5 allowed the BACKTRACE env to unsilence backtraces in normals runs not just tests. However, the implementation achieves this by removing the silences in an initializer. This means that the state of backtrace silencer becomes cached by spring and the developer needs to reset spring every time they want to silence or unsilence the backtrace. It also means custom silencers added in an initializer need to be added after the :configure_backtrace_cleaner initializer or else they won't be un-silenced properly.

Instead, let's teach Rails::BacktraceCleaner to unsilence the backtrace if the BACKTRACE variable is set. ActiveSupport::BacktraceCleaner#clean already allows this by passing nil as the second argument, which just filters but does not silence the backtrace. So, in Rails::BacktraceCleaner#clean we can call super with nil in the second argument if the BACKTRACE variable is present. That way we do not need to remove the silencers in an initializer, and we don't have to reset spring to silence the backtrace.
2024-04-26 11:45:59 -04:00
..
application Unsilence BacktraceCleaner with BACKTRACE without removing silencers 2024-04-26 11:45:59 -04:00
command Address Rails::Command::HelpIntegrationTest failure against ruby 3.4.0dev 2024-04-10 17:57:40 +09:00
commands Improve routes source location detection 2024-02-05 16:37:37 +01:00
configuration Raise if setting a config key that is a method name 2023-04-23 09:39:07 +02:00
engine Fix the BroadcastLogger being initialized too late: 2023-09-29 15:42:47 +02:00
fixtures Use devcontainer features for optional dependencies 2024-04-12 10:13:42 -04:00
generators Merge pull request #50780 from zachasme/app-update-skip-sprockets 2024-04-22 18:42:10 -03:00
isolation default annotate_rendered_view_with_filenames to true in development 2024-01-04 21:24:37 +02:00
minitest Get rid of EnvHelpers at Minitest::RailsPluginTest 2024-01-04 11:32:33 +09:00
railties Update test suite for compatibility with Ruby 3.4-dev 2024-02-16 11:55:44 +01:00
test_unit Parse tests with prism 2024-02-09 10:54:20 -05:00
abstract_unit.rb Get rid of the jruby_skip test helper 2023-10-02 13:01:44 +02:00
app_loader_test.rb Turn on performance based cops 2018-07-23 15:37:06 -07:00
backtrace_cleaner_test.rb Fix ActionView backtrace filtering on Ruby 3.4+ 2024-04-22 14:07:57 -07:00
code_statistics_calculator_test.rb Add support for stylesheets and ERB views to rails stats. 2020-11-10 09:40:18 -07:00
code_statistics_test.rb Adding frozen_string_literal pragma to Railties. 2017-08-14 19:08:09 +02:00
console_helpers.rb Do not run tests that have ensure instead of skip 2022-09-20 22:12:20 +09:00
engine_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
env_helpers.rb Enable Style/ExplicitBlockArgument cop 2021-09-05 17:06:19 +02:00
generators_test.rb Use bin/rails in generator Base banner 2023-03-29 02:40:52 -04:00
initializable_test.rb Adding frozen_string_literal pragma to Railties. 2017-08-14 19:08:09 +02:00
json_params_parsing_test.rb Deprecate ConnectionPool#connection 2024-03-01 14:32:55 +01:00
path_generation_test.rb Store secret_key_base in Rails.config for local environments. 2023-06-14 16:37:23 +02:00
paths_test.rb Ensure only directories exist in Rails default load paths 2024-01-15 15:04:53 +09:00
plugin_helpers.rb Separate the CI environment from the application CI environment 2023-10-04 09:36:51 +00:00
rack_logger_test.rb Don't pop logger tags in Rails::Rack::Logger until request is finished 2024-02-07 14:12:07 +11:00
rails_health_controller_test.rb add "as: :rails_health_check" to health check path (#47217) 2023-02-05 08:49:04 +01:00
rails_info_controller_test.rb Expand rails route search to all table content 2023-03-03 17:14:33 +11:00
rails_info_test.rb Revert "Merge pull request #34387 from yhirano55/rails_info_properties_json" 2019-01-08 22:21:20 +01:00
secrets_test.rb Enable Style/RedundantBegin cop to avoid newly adding redundant begin block 2018-12-21 06:12:42 +09:00
version_test.rb Adding frozen_string_literal pragma to Railties. 2017-08-14 19:08:09 +02:00