Sha256: d5ab0d6cb904279dc499fe27a768baa9fe417d62910d98586f539d32e6f91d9f

Contents?: true

Size: 650 Bytes

Versions: 12

Compression:

Stored size: 650 Bytes

Contents

module RUNIT
  class TestSuite < Array
    
    def initialize(*test_classes)
      test_classes.each do |k|
        if k.kind_of?(Array)
          concat k
        else
          concat k.suite
        end
      end
    end

    def run(result)
      each do |t|
        t.run(result)
      end
    end

    def count_test_cases
      sum = 0
      each do |test|
	sum += test.count_test_cases
      end
      sum
    end

    def add(test)
      if test.kind_of?(Array) 
	concat test
      else
	push test
      end
    end
    alias add_test add

    def extend_test(*mod)
      each do |t|
        t.extend_test(*mod)
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
ruby-oci8-1.0.7-x86-mswin32-60 support/runit/testsuite.rb
ruby-oci8-1.0.7 support/runit/testsuite.rb
ruby-oci8-1.0.5-i386-mswin32 support/runit/testsuite.rb
ruby-oci8-1.0.4-i386-mswin32 support/runit/testsuite.rb
ruby-oci8-1.0.3-i386-mswin32 support/runit/testsuite.rb
ruby-oci8-1.0.2-i386-mswin32 support/runit/testsuite.rb
ruby-oci8-1.0.6 support/runit/testsuite.rb
ruby-oci8-1.0.2 support/runit/testsuite.rb
ruby-oci8-1.0.4 support/runit/testsuite.rb
ruby-oci8-1.0.6-x86-mswin32-60 support/runit/testsuite.rb
ruby-oci8-1.0.3 support/runit/testsuite.rb
ruby-oci8-1.0.5 support/runit/testsuite.rb