Sha256: 70dfcd6fabe5c543dd2bc23ae6243bed3009cb5a46f1507591cf5b64c5a4b791

Contents?: true

Size: 674 Bytes

Versions: 4

Compression:

Stored size: 674 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(server)
        suite = ::Test::Unit::AutoRunner::COLLECTORS[:objectspace].call NO_FILTERS
        supervised_suite = DeepTest::Test::SupervisedTestSuite.new(suite, server)
        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 & 1 rubygems

Version Path
jason-o-matic-deep_test-1.2.2.5 lib/deep_test/test/runner.rb
jason-o-matic-deep_test-1.2.2.6 lib/deep_test/test/runner.rb
jason-o-matic-deep_test-1.2.2.7 lib/deep_test/test/runner.rb
jason-o-matic-deep_test-1.2.2.8 lib/deep_test/test/runner.rb