Module: Turn

Defined in:
lib/turn/runners/minirunner.rb,
lib/turn.rb,
lib/turn/command.rb,
lib/turn/version.rb,
lib/turn/colorize.rb,
lib/turn/reporter.rb,
lib/turn/testunit.rb,
lib/turn/controller.rb,
lib/turn/configuration.rb,
lib/turn/components/case.rb,
lib/turn/components/suite.rb,
lib/turn/components/method.rb,
lib/turn/runners/isorunner.rb,
lib/turn/runners/solorunner.rb,
lib/turn/runners/crossrunner.rb,
lib/turn/reporters/cue_reporter.rb,
lib/turn/reporters/dot_reporter.rb,
lib/turn/reporters/pretty_reporter.rb,
lib/turn/reporters/marshal_reporter.rb,
lib/turn/reporters/outline_reporter.rb,
lib/turn/decorators/topten_decorator.rb,
lib/turn/reporters/progress_reporter.rb,
lib/turn/runners/testrunner.rb

Overview

Because of some wierdness in MiniTest debug, $DEBUG = $DEBUG, false require 'minitest/unit' $DEBUG = debug

Defined Under Namespace

Modules: Colorize Classes: Command, Configuration, Controller, CrossRunner, CueReporter, DotReporter, IsoRunner, MarshalReporter, MiniRunner, OutlineReporter, PrettyReporter, ProgressReporter, Reporter, SoloRunner, TestCase, TestMethod, TestRunner, TestSuite, ToptenDecorator

Constant Summary collapse

VERSION =
"0.9.7"

Class Method Summary collapse

Class Method Details

.bootstrap_legacy(autorun = false) ⇒ Object

For TestUnit 1.x, completely outdated.


4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/turn/testunit.rb', line 4

def self.bootstrap_legacy(autorun=false)
  require 'fileutils'

  require 'turn/version'
  require 'turn/autoload'
  require 'turn/configuration'
  require 'turn/colorize'
  require 'turn/components'
  require 'turn/controller'

  require 'test/unit'
  require 'turn/runners/testrunner'

  # need to turn this off unless autorun mode
  Test::Unit.run = autorun
end

.config(&block) ⇒ Object

Configure Turn


4
5
6
7
8
# File 'lib/turn/configuration.rb', line 4

def self.config(&block)
  @config ||= Configuration.new
  block.call(@config) if block
  @config
end