Module: DeepTest

Defined in:
lib/deep_test.rb,
lib/deep_test/logger.rb,
lib/deep_test/option.rb,
lib/deep_test/server.rb,
lib/deep_test/worker.rb,
lib/deep_test/options.rb,
lib/deep_test/ui/null.rb,
lib/deep_test/warlock.rb,
lib/deep_test/test_task.rb,
lib/deep_test/ui/console.rb,
lib/deep_test/spec/runner.rb,
lib/deep_test/test/runner.rb,
lib/deep_test/listener_list.rb,
lib/deep_test/local_workers.rb,
lib/deep_test/result_reader.rb,
lib/deep_test/rspec_detector.rb,
lib/deep_test/spec/work_unit.rb,
lib/deep_test/test/work_unit.rb,
lib/deep_test/metrics/gatherer.rb,
lib/deep_test/spec/work_result.rb,
lib/deep_test/test/work_result.rb,
lib/deep_test/deadlock_detector.rb,
lib/deep_test/distributed/rsync.rb,
lib/deep_test/null_worker_listener.rb,
lib/deep_test/process_orchestrator.rb,
lib/deep_test/database/setup_listener.rb,
lib/deep_test/distributed/test_server.rb,
lib/deep_test/extensions/drb_extension.rb,
lib/deep_test/distributed/null_work_unit.rb,
lib/deep_test/test/supervised_test_suite.rb,
lib/deep_test/extensions/object_extension.rb,
lib/deep_test/database/mysql_setup_listener.rb,
lib/deep_test/distributed/filename_resolver.rb,
lib/deep_test/distributed/throughput_runner.rb,
lib/deep_test/distributed/master_test_server.rb,
lib/deep_test/distributed/test_server_status.rb,
lib/deep_test/marshallable_exception_wrapper.rb,
lib/deep_test/distributed/dispatch_controller.rb,
lib/deep_test/distributed/test_server_workers.rb,
lib/deep_test/distributed/remote_worker_client.rb,
lib/deep_test/distributed/remote_worker_server.rb,
lib/deep_test/distributed/throughput_statistics.rb,
lib/deep_test/distributed/multi_test_server_proxy.rb,
lib/deep_test/distributed/throughput_worker_client.rb,
lib/deep_test/distributed/drb_client_connection_info.rb,
lib/deep_test/metrics/queue_lock_wait_time_measurement.rb

Defined Under Namespace

Modules: Database, Distributed, Metrics, ObjectExtension, Spec, Test, UI Classes: DRbBindAllTCPSocket, DeadlockDetector, ListenerList, LocalWorkers, Logger, MarshallableExceptionWrapper, NullWorkerListener, Option, Options, ProcessOrchestrator, RSpecDetector, ResultReader, Server, TestTask, UnloadableException, Warlock, WorkUnitNeverReceivedError, Worker

Class Method Summary collapse

Class Method Details

.drb_safe_fork(&block) ⇒ Object

Fork in a separate thread. If we fork from a DRb thread

(a thread handling a method call invoked over drb),
DRb still thinks the current object is the DRb Front Object,
and reports its uri as the same as in the parent process, even
if you restart DRb service.


14
15
16
# File 'lib/deep_test.rb', line 14

def self.drb_safe_fork(&block)
  Thread.new {Process.fork(&block)}.value
end

.init(options) ⇒ Object



18
19
20
21
22
# File 'lib/deep_test.rb', line 18

def self.init(options)
  return if @initialized
  @initialized = true
  Metrics::Gatherer.setup(options)
end

.loggerObject



3
4
5
# File 'lib/deep_test.rb', line 3

def logger
  @logger ||= DeepTest::Logger.new($stdout)
end