Module: Cucumber

Defined in:
lib/cucumber.rb,
lib/cucumber/ast.rb,
lib/cucumber/unit.rb,
lib/cucumber/errors.rb,
lib/cucumber/runtime.rb,
lib/cucumber/mappings.rb,
lib/cucumber/platform.rb,
lib/cucumber/cli/main.rb,
lib/cucumber/load_path.rb,
lib/cucumber/rake/task.rb,
lib/cucumber/step_match.rb,
lib/cucumber/file_specs.rb,
lib/cucumber/cli/options.rb,
lib/cucumber/constantize.rb,
lib/cucumber/filters/quit.rb,
lib/cucumber/formatter/io.rb,
lib/cucumber/configuration.rb,
lib/cucumber/formatter/json.rb,
lib/cucumber/formatter/html.rb,
lib/cucumber/term/ansicolor.rb,
lib/cucumber/formatter/junit.rb,
lib/cucumber/formatter/usage.rb,
lib/cucumber/formatter/steps.rb,
lib/cucumber/formatter/rerun.rb,
lib/cucumber/formatter/debug.rb,
lib/cucumber/step_definitions.rb,
lib/cucumber/formatter/pretty.rb,
lib/cucumber/formatter/fanout.rb,
lib/cucumber/language_support.rb,
lib/cucumber/formatter/summary.rb,
lib/cucumber/formatter/gpretty.rb,
lib/cucumber/cli/configuration.rb,
lib/cucumber/rb_support/rb_dsl.rb,
lib/cucumber/formatter/unicode.rb,
lib/cucumber/formatter/console.rb,
lib/cucumber/formatter/stepdefs.rb,
lib/cucumber/filters/randomizer.rb,
lib/cucumber/multiline_argument.rb,
lib/cucumber/formatter/duration.rb,
lib/cucumber/cli/profile_loader.rb,
lib/cucumber/formatter/progress.rb,
lib/cucumber/filters/tag_limits.rb,
lib/cucumber/rb_support/rb_hook.rb,
lib/cucumber/rb_support/snippet.rb,
lib/cucumber/rb_support/rb_world.rb,
lib/cucumber/formatter/ansicolor.rb,
lib/cucumber/runtime/support_code.rb,
lib/cucumber/step_definition_light.rb,
lib/cucumber/formatter/interceptor.rb,
lib/cucumber/formatter/json_pretty.rb,
lib/cucumber/filters/gated_receiver.rb,
lib/cucumber/runtime/user_interface.rb,
lib/cucumber/rb_support/rb_language.rb,
lib/cucumber/core_ext/instance_exec.rb,
lib/cucumber/rb_support/rb_transform.rb,
lib/cucumber/wire_support/connection.rb,
lib/cucumber/wire_support/wire_packet.rb,
lib/cucumber/formatter/legacy_api/ast.rb,
lib/cucumber/wire_support/wire_language.rb,
lib/cucumber/wire_support/configuration.rb,
lib/cucumber/wire_support/wire_protocol.rb,
lib/cucumber/filters/tag_limits/verifier.rb,
lib/cucumber/wire_support/wire_exception.rb,
lib/cucumber/wire_support/request_handler.rb,
lib/cucumber/formatter/legacy_api/adapter.rb,
lib/cucumber/formatter/legacy_api/results.rb,
lib/cucumber/rb_support/rb_step_definition.rb,
lib/cucumber/multiline_argument/doc_string.rb,
lib/cucumber/multiline_argument/data_table.rb,
lib/cucumber/wire_support/wire_step_definition.rb,
lib/cucumber/runtime/for_programming_languages.rb,
lib/cucumber/formatter/ignore_missing_messages.rb,
lib/cucumber/language_support/language_methods.rb,
lib/cucumber/filters/tag_limits/test_case_index.rb,
lib/cucumber/rb_support/regexp_argument_matcher.rb,
lib/cucumber/formatter/gherkin_formatter_adapter.rb,
lib/cucumber/wire_support/wire_protocol/requests.rb,
lib/cucumber/formatter/legacy_api/runtime_facade.rb

Defined Under Namespace

Modules: Ast, Cli, Constantize, Filters, FixRuby21Bug9285, Formatter, LanguageSupport, LoadPath, MultilineArgument, Rake, RbSupport, Term, WireSupport Classes: Ambiguous, ArityMismatchError, Configuration, FeatureFolderNotFoundException, FileException, FileNotFoundException, FileSpecs, Mappings, NoStepMatch, Pending, Runtime, StepDefinitionLight, StepDefinitions, StepMatch, TagExcess, Undefined, Unit

Constant Summary

VERSION =
'2.0.0.beta.3'
BINARY =
File.expand_path(File.dirname(__FILE__) + '/../../bin/cucumber')
LIBDIR =
File.expand_path(File.dirname(__FILE__) + '/../../lib')
JRUBY =
defined?(JRUBY_VERSION)
IRONRUBY =
defined?(RUBY_ENGINE) && RUBY_ENGINE == "ironruby"
WINDOWS =
RbConfig::CONFIG['host_os'] =~ /mswin|mingw/
OS_X =
RbConfig::CONFIG['host_os'] =~ /darwin/
WINDOWS_MRI =
WINDOWS && !JRUBY && !IRONRUBY
RAILS =
defined?(Rails)
RUBY_BINARY =
File.join(RbConfig::CONFIG['bindir'], RbConfig::CONFIG['ruby_install_name'])
RUBY_2_1 =
RUBY_VERSION =~ /^2\.1/
RUBY_2_0 =
RUBY_VERSION =~ /^2\.0/
RUBY_1_9 =
RUBY_VERSION =~ /^1\.9/

Class Attribute Summary (collapse)

Class Method Summary (collapse)

Class Attribute Details

+ (Object) use_full_backtrace

Returns the value of attribute use_full_backtrace



22
23
24
# File 'lib/cucumber/platform.rb', line 22

def use_full_backtrace
  @use_full_backtrace
end

+ (Object) wants_to_quit

Returns the value of attribute wants_to_quit



13
14
15
# File 'lib/cucumber.rb', line 13

def wants_to_quit
  @wants_to_quit
end

Class Method Details

+ (Object) logger



15
16
17
18
19
20
# File 'lib/cucumber.rb', line 15

def logger
  return @log if @log
  @log = Logger.new(STDOUT)
  @log.level = Logger::INFO
  @log
end

+ (Object) logger=(logger)



22
23
24
# File 'lib/cucumber.rb', line 22

def logger=(logger)
  @log = logger
end