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



92
93
94
# File 'lib/detroit-qed.rb', line 92

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

Instance Method Details

#assemble(station, options = {}) ⇒ Object

Attach test method to test assembly station.



57
58
59
60
61
# File 'lib/detroit-qed.rb', line 57

def assemble(station, options={})
  case station
  when :test then test
  end
end

#assemble?(station, options = {}) ⇒ Boolean

A S S E M B L Y M E T H O D S

Returns:

  • (Boolean)


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

def assemble?(station, options={})
  case station
  when :test then true
  end
end

#testObject



67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# File 'lib/detroit-qed.rb', line 67

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