class RubyUnit::TestSet
Test Sets are a collection of Test Cases
Public Class Methods
new(test_cases)
click to toggle source
Create a test set and import test cases.
# File lib/RubyUnit/TestSet.rb, line 7 def initialize test_cases $:.unshift '.' unless $:.include? '.' import test_cases end
type()
click to toggle source
Defining type of files includes for RubyUnit::TestSuite
used with –debug
# File lib/RubyUnit/TestSet.rb, line 24 def self.type 'Test Case' end
Public Instance Methods
import(test_cases)
click to toggle source
Import the test cases for this test set
# File lib/RubyUnit/TestSet.rb, line 14 def import test_cases raise TypeError, "File list must be an Array, got #{test_cases.class}" unless test_cases.is_a? Array test_cases.each do |test_case| puts "%20s : %s" % ['Adding ' + self.class.type, test_case] if RubyUnit.debug require test_case end end