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/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/reporters/progress_reporter.rb,
lib/turn/runners/testrunner.rb

Overview

Becuase 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

Constant Summary collapse

VERSION =
"0.9.0"

Class Method Summary collapse

Class Method Details

.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

.testunit?Boolean

Are we using Test::Unit (1.x)?

Returns:

  • (Boolean)


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

def self.testunit?
  defined?(Test::Unit) && !defined?(MiniTest)
end