Class: Doctrine::Suite

Inherits:
Object
  • Object
show all
Includes:
Is::Definable, Is::Factory, Is::Loadable, Is::Stateful
Defined in:
lib/doctrine/suite.rb

Overview

public

Class Method Summary collapse

Class Method Details

.runObject

public

25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# File 'lib/doctrine/suite.rb', line 25

def self.run
  reporter = Reporter.new
  runner = Runner.new(reporter: reporter)

  runs = []
  @doctrines.each do |doctrine|
    doctrine.tenets.each do |tenet|
      run = Run.new(doctrine: doctrine, tenet: tenet)
      runner.run(run)
      runs << run
    end
  end

  runner.wait

  reporter.summarize(runs)
end