Sha256: 3644c5f61adcf9a9d1f3ad70f8a0119d7e8c1ec02e1ac4ac403d1b20a514d303
Contents?: true
Size: 843 Bytes
Versions: 5
Compression:
Stored size: 843 Bytes
Contents
module DeepTest class Loader NO_FILTERS = Object.new.instance_eval do def filters; []; end; self end def self.run(args) require "deep_test" ENV["RAILS_ENV"] = "test" Object.const_set "RAILS_ENV", "test" Dir.glob(ARGV.first).each { |file| load file } suite = Test::Unit::AutoRunner::COLLECTORS[:objectspace].call NO_FILTERS blackboard = DeepTest::RindaBlackboard.new supervisor = DeepTest::Supervisor.new blackboard supervised_suite = DeepTest::SupervisedTestSuite.new(suite, supervisor) require 'test/unit/ui/console/testrunner' result = Test::Unit::UI::Console::TestRunner.run(supervised_suite, Test::Unit::UI::NORMAL) Test::Unit.run = true return result.passed? end end end if __FILE__ == $0 exit DeepTest::Loader.run(ARGV) end
Version data entries
5 entries across 5 versions & 1 rubygems