Sha256: 0c3303993ef7efe9cc0c89644aaae5557806790d8ee37fdb42634f3afe5cec2a

Contents?: true

Size: 692 Bytes

Versions: 4

Compression:

Stored size: 692 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 process_work_units(central_command)
        suite = ::Test::Unit::AutoRunner::COLLECTORS[:objectspace].call NO_FILTERS
        supervised_suite = DeepTest::Test::SupervisedTestSuite.new(suite, central_command)
        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

4 entries across 4 versions & 2 rubygems

Version Path
deep_test_pre-2.0 lib/deep_test/test/runner.rb
jstorimer-deep-test-2.0.0 lib/deep_test/test/runner.rb
jstorimer-deep-test-0.2.0 lib/deep_test/test/runner.rb
jstorimer-deep-test-0.1.0 lib/deep_test/test/runner.rb