Sha256: 3a85c13648556e9f22770d4128eefc00042f59d849b42adc2f43410869714cd0
Contents?: true
Size: 814 Bytes
Versions: 2
Compression:
Stored size: 814 Bytes
Contents
module DeepTest module Test class Runner unless defined?(NO_FILTERS) NO_FILTERS = Object.new.instance_eval do def filters; []; end; self end end def initialize(options) @options = options end def load_files Dir.glob(@options.pattern).each { |file| load file } ::Test::Unit.run = true end def process_work_units suite = ::Test::Unit::AutoRunner::COLLECTORS[:objectspace].call NO_FILTERS supervised_suite = DeepTest::Test::SupervisedTestSuite.new(suite, RindaBlackboard.new(@options)) require 'test/unit/ui/console/testrunner' result = ::Test::Unit::UI::Console::TestRunner.run(supervised_suite, ::Test::Unit::UI::NORMAL) result.passed? end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
deep_test-1.1.3 | lib/deep_test/test/runner.rb |
deep_test-1.1.4 | lib/deep_test/test/runner.rb |