Sha256: ab6b10c2f92b3e02f2eb6060315c4e2ac0cbcf1fa4585ce07b5023d9d9ddc391

Contents?: true

Size: 468 Bytes

Versions: 1

Compression:

Stored size: 468 Bytes

Contents

module DeepTest
  class SupervisedTestSuite
    def initialize(suite, supervisor = DeepTest::Supervisor.new)
      @suite = suite
      @supervisor = supervisor
    end

    def run(result, &progress_block)
      yield Test::Unit::TestSuite::STARTED, @suite.name
      @supervisor.add_tests @suite
      @supervisor.read_results result, &progress_block
      yield Test::Unit::TestSuite::FINISHED, @suite.name
    end

    def size
      @suite.size
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
deep_test-1.1.2 lib/deep_test/supervised_test_suite.rb