Sha256: c4556246a97e091205c3dbc459c9cead31f2d44b5a58bc6aaa9498fd72dd35c2

Contents?: true

Size: 699 Bytes

Versions: 7

Compression:

Stored size: 699 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[@options.test_collector].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

7 entries across 7 versions & 1 rubygems

Version Path
jason-o-matic-deep_test-1.2.2.10 lib/deep_test/test/runner.rb
jason-o-matic-deep_test-1.2.2.11 lib/deep_test/test/runner.rb
jason-o-matic-deep_test-1.2.2.12 lib/deep_test/test/runner.rb
jason-o-matic-deep_test-1.2.2.13 lib/deep_test/test/runner.rb
jason-o-matic-deep_test-1.2.2.14 lib/deep_test/test/runner.rb
jason-o-matic-deep_test-1.2.2.9 lib/deep_test/test/runner.rb
jason-o-matic-deep_test-1.2.2.15 lib/deep_test/test/runner.rb