class Detroit::Qed

Run QED tests.

Attributes

files[RW]

Demonstration files (or globs).

format[RW]

Output format.

loadpath[R]

Paths to be added to $LOAD_PATH.

mode[RW]

Parse mode.

omit[RW]

File patterns to omit.

profile[RW]

Selected profile.

requires[R]

Libraries to be required.

rooted[RW]

Operate from project root?

Public Class Methods

man_page() click to toggle source
# File lib/detroit-qed.rb, line 92
def self.man_page
  File.dirname(__FILE__)+'/../man/detroit-qed.5'  
end

Public Instance Methods

assemble(station, options={}) click to toggle source

Attach test method to test assembly station.

# File lib/detroit-qed.rb, line 57
def assemble(station, options={})
  case station
  when :test then test
  end
end
assemble?(station, options={}) click to toggle source

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

# File lib/detroit-qed.rb, line 50
def assemble?(station, options={})
  case station
  when :test then true
  end
end
loadpath=(paths) click to toggle source
# File lib/detroit-qed.rb, line 38
def loadpath=(paths)
  @loadpath = [paths].flatten
end
requires=(paths) click to toggle source
# File lib/detroit-qed.rb, line 43
def requires=(paths)
  @requires = [paths].flatten
end
test() click to toggle source
# 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

Private Instance Methods

initialize_requires() click to toggle source
# File lib/detroit-qed.rb, line 86
def initialize_requires
  require 'qed'
end