Module: Micron
- Extended by:
- Util::Ex, Util::IO, Util::ThreadDump
- Defined in:
- lib/micron/test_case/redir_logging.rb,
lib/micron.rb,
lib/micron/app.rb,
lib/micron/rake.rb,
lib/micron/runner.rb,
lib/micron/util/ex.rb,
lib/micron/util/io.rb,
lib/micron/reporter.rb,
lib/micron/assertion.rb,
lib/micron/test_case.rb,
lib/micron/app/options.rb,
lib/micron/fork_runner.rb,
lib/micron/proc_runner.rb,
lib/micron/runner/shim.rb,
lib/micron/runner/clazz.rb,
lib/micron/runner/debug.rb,
lib/micron/runner/method.rb,
lib/micron/runner/clazz19.rb,
lib/micron/reporter/console.rb,
lib/micron/runner/test_file.rb,
lib/micron/util/thread_dump.rb,
lib/micron/reporter/coverage.rb,
lib/micron/runner/proc_clazz.rb,
lib/micron/runner/fork_worker.rb,
lib/micron/runner/forking_clazz.rb,
lib/micron/test_case/assertions.rb,
lib/micron/runner/exception_info.rb,
lib/micron/runner/parallel_clazz.rb,
lib/micron/runner/process_reaper.rb,
lib/micron/runner/backtrace_filter.rb,
lib/micron/runner/liveness_checker.rb,
lib/micron/test_case/lifecycle_hooks.rb,
lib/micron/test_case/teardown_coverage.rb,
lib/micron/runner/liveness_checker/ping.rb,
lib/micron/runner/liveness_checker/pong.rb
Overview
Helper for redirecting ‘logging’ messages to STDOUT when running tests
You can redirect all logs (root logger) with the following:
class TestCase < ActiveSupport::TestCase
include Micron::TestCase::RedirLogging
self.redir_logger = Logging.logger.root
end
Or only a specific hierarchy like so:
class TestCase < ActiveSupport::TestCase
include Micron::TestCase::RedirLogging
self.redir_logger = Logging.logger[Bixby]
end
Defined Under Namespace
Modules: Util Classes: App, Assertion, BacktraceFilter, ForkRunner, ProcRunner, Rake, Reporter, Runner, Skip, TestCase
Class Attribute Summary collapse
-
.backtrace_filter ⇒ Object
Returns the value of attribute backtrace_filter.
-
.runner ⇒ Object
Returns the value of attribute runner.
Class Method Summary collapse
Methods included from Util::IO
Methods included from Util::ThreadDump
Methods included from Util::Ex
Class Attribute Details
.backtrace_filter ⇒ Object
Returns the value of attribute backtrace_filter.
20 21 22 |
# File 'lib/micron.rb', line 20 def backtrace_filter @backtrace_filter end |
.runner ⇒ Object
Returns the value of attribute runner.
20 21 22 |
# File 'lib/micron.rb', line 20 def runner @runner end |
Class Method Details
.filter_backtrace(bt) ⇒ Object
22 23 24 |
# File 'lib/micron.rb', line 22 def filter_backtrace(bt) backtrace_filter.call(bt) end |