Module: TestML

Defined in:
lib/testml/lite.rb

Defined Under Namespace

Classes: Lite

Class Method Summary collapse

Class Method Details

.data(data) ⇒ Object



16
17
18
# File 'lib/testml/lite.rb', line 16

def self.data data
  $testml_data[_get_test_name] = data
end

.require_or_skip(module_) ⇒ Object



20
21
22
23
# File 'lib/testml/lite.rb', line 20

def self.require_or_skip module_
  require module_
  rescue exit
end

.run(&runner) ⇒ Object



8
9
10
11
12
13
14
# File 'lib/testml/lite.rb', line 8

def self.run &runner
  name = _get_test_name
  $testml_runners[name] = runner
  TestML::Lite::TestCases.send(:define_method, name) do
    _run_runner name
  end
end