Module: EtestUnit::TestCase

Defined in:
lib/etest-unit.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#testsObject

Returns the value of attribute tests.



113
114
115
# File 'lib/etest-unit.rb', line 113

def tests
  @tests
end

Instance Method Details

#etest=(etest) ⇒ Object



108
109
110
111
# File 'lib/etest-unit.rb', line 108

def etest=(etest)
  @etest = etest
  include etest
end

#suiteObject



115
116
117
118
119
120
121
# File 'lib/etest-unit.rb', line 115

def suite
  suite_creator = EtestUnit::TestSuiteCreator.new(self)
  suite_creator.tests = tests
  suite = suite_creator.create
  suite.name = @etest.name
  suite
end