Class: Detroit::Qed

Inherits:
Tool
  • Object
show all
Defined in:
lib/detroit-qed.rb

Overview

Run QED tests.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#filesObject

Demonstration files (or globs).



14
15
16
# File 'lib/detroit-qed.rb', line 14

def files
  @files
end

#formatObject

Output format.



20
21
22
# File 'lib/detroit-qed.rb', line 20

def format
  @format
end

#loadpathObject

Paths to be added to $LOAD_PATH.



26
27
28
# File 'lib/detroit-qed.rb', line 26

def loadpath
  @loadpath
end

#modeObject

Parse mode.



23
24
25
# File 'lib/detroit-qed.rb', line 23

def mode
  @mode
end

#omitObject

File patterns to omit.



17
18
19
# File 'lib/detroit-qed.rb', line 17

def omit
  @omit
end

#profileObject

Selected profile.



35
36
37
# File 'lib/detroit-qed.rb', line 35

def profile
  @profile
end

#requiresObject

Libraries to be required.



29
30
31
# File 'lib/detroit-qed.rb', line 29

def requires
  @requires
end

#rootedObject

Operate from project root?



32
33
34
# File 'lib/detroit-qed.rb', line 32

def rooted
  @rooted
end

Class Method Details

.man_pageObject



83
84
85
# File 'lib/detroit-qed.rb', line 83

def self.man_page
  File.dirname(__FILE__)+'/../man/detroit-qed.5'  
end

Instance Method Details

#station_testObject

Attach test method to test assembly station.



50
51
52
# File 'lib/detroit-qed.rb', line 50

def station_test
  test
end

#testObject



58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# File 'lib/detroit-qed.rb', line 58

def test
  options = {
    :omit     => omit,
    :format   => format,
    :mode     => mode,
    :loadpath => loadpath,
    :requires => requires,
    :rooted   => rooted,
    :profile  => profile,
    :trace    => trace?
  }

  session = QED::Session.new(files, options)
  session.run
end