Module: Cucumber
- Defined in:
- lib/cucumber.rb,
lib/cucumber/unit.rb,
lib/cucumber/hooks.rb,
lib/cucumber/errors.rb,
lib/cucumber/events.rb,
lib/cucumber/runtime.rb,
lib/cucumber/cli/main.rb,
lib/cucumber/glue/dsl.rb,
lib/cucumber/platform.rb,
lib/cucumber/deprecate.rb,
lib/cucumber/glue/hook.rb,
lib/cucumber/load_path.rb,
lib/cucumber/rake/task.rb,
lib/cucumber/file_specs.rb,
lib/cucumber/step_match.rb,
lib/cucumber/cli/options.rb,
lib/cucumber/constantize.rb,
lib/cucumber/term/banner.rb,
lib/cucumber/filters/quit.rb,
lib/cucumber/formatter/io.rb,
lib/cucumber/gherkin/i18n.rb,
lib/cucumber/glue/snippet.rb,
lib/cucumber/configuration.rb,
lib/cucumber/filters/retry.rb,
lib/cucumber/cli/rerun_file.rb,
lib/cucumber/formatter/html.rb,
lib/cucumber/formatter/json.rb,
lib/cucumber/term/ansicolor.rb,
lib/cucumber/events/envelope.rb,
lib/cucumber/formatter/junit.rb,
lib/cucumber/formatter/rerun.rb,
lib/cucumber/formatter/steps.rb,
lib/cucumber/formatter/usage.rb,
lib/cucumber/formatter/errors.rb,
lib/cucumber/formatter/fanout.rb,
lib/cucumber/formatter/pretty.rb,
lib/cucumber/glue/proto_world.rb,
lib/cucumber/step_definitions.rb,
lib/cucumber/cli/configuration.rb,
lib/cucumber/formatter/console.rb,
lib/cucumber/formatter/http_io.rb,
lib/cucumber/formatter/message.rb,
lib/cucumber/formatter/summary.rb,
lib/cucumber/formatter/unicode.rb,
lib/cucumber/running_test_case.rb,
lib/cucumber/step_match_search.rb,
lib/cucumber/cli/profile_loader.rb,
lib/cucumber/filters/randomizer.rb,
lib/cucumber/filters/tag_limits.rb,
lib/cucumber/formatter/duration.rb,
lib/cucumber/formatter/progress.rb,
lib/cucumber/formatter/stepdefs.rb,
lib/cucumber/glue/world_factory.rb,
lib/cucumber/multiline_argument.rb,
lib/cucumber/runtime/step_hooks.rb,
lib/cucumber/formatter/ansicolor.rb,
lib/cucumber/formatter/fail_fast.rb,
lib/cucumber/project_initializer.rb,
lib/cucumber/runtime/after_hooks.rb,
lib/cucumber/formatter/ast_lookup.rb,
lib/cucumber/gherkin/steps_parser.rb,
lib/cucumber/glue/invoke_in_world.rb,
lib/cucumber/glue/step_definition.rb,
lib/cucumber/runtime/before_hooks.rb,
lib/cucumber/runtime/support_code.rb,
lib/cucumber/events/step_activated.rb,
lib/cucumber/filters/prepare_world.rb,
lib/cucumber/formatter/interceptor.rb,
lib/cucumber/glue/registry_wrapper.rb,
lib/cucumber/step_definition_light.rb,
lib/cucumber/events/test_case_ready.rb,
lib/cucumber/filters/activate_steps.rb,
lib/cucumber/filters/gated_receiver.rb,
lib/cucumber/formatter/url_reporter.rb,
lib/cucumber/glue/registry_and_more.rb,
lib/cucumber/runtime/user_interface.rb,
lib/cucumber/events/test_run_started.rb,
lib/cucumber/events/test_case_created.rb,
lib/cucumber/events/test_case_started.rb,
lib/cucumber/events/test_run_finished.rb,
lib/cucumber/events/test_step_created.rb,
lib/cucumber/events/test_step_started.rb,
lib/cucumber/formatter/console_counts.rb,
lib/cucumber/formatter/console_issues.rb,
lib/cucumber/formatter/io_http_buffer.rb,
lib/cucumber/events/test_case_finished.rb,
lib/cucumber/events/test_step_finished.rb,
lib/cucumber/filters/apply_after_hooks.rb,
lib/cucumber/formatter/message_builder.rb,
lib/cucumber/gherkin/data_table_parser.rb,
lib/cucumber/events/gherkin_source_read.rb,
lib/cucumber/filters/apply_around_hooks.rb,
lib/cucumber/filters/apply_before_hooks.rb,
lib/cucumber/formatter/backtrace_filter.rb,
lib/cucumber/gherkin/formatter/escaping.rb,
lib/cucumber/filters/tag_limits/verifier.rb,
lib/cucumber/events/gherkin_source_parsed.rb,
lib/cucumber/formatter/curl_option_parser.rb,
lib/cucumber/formatter/duration_extractor.rb,
lib/cucumber/runtime/meta_message_builder.rb,
lib/cucumber/events/hook_test_step_created.rb,
lib/cucumber/multiline_argument/data_table.rb,
lib/cucumber/multiline_argument/doc_string.rb,
lib/cucumber/filters/apply_after_step_hooks.rb,
lib/cucumber/formatter/query/pickle_by_test.rb,
lib/cucumber/gherkin/formatter/ansi_escapes.rb,
lib/cucumber/events/undefined_parameter_type.rb,
lib/cucumber/formatter/publish_banner_printer.rb,
lib/cucumber/events/step_definition_registered.rb,
lib/cucumber/formatter/ignore_missing_messages.rb,
lib/cucumber/formatter/query/hook_by_test_step.rb,
lib/cucumber/runtime/for_programming_languages.rb,
lib/cucumber/filters/tag_limits/test_case_index.rb,
lib/cucumber/filters/broadcast_test_case_ready_event.rb,
lib/cucumber/filters/broadcast_test_run_started_event.rb,
lib/cucumber/formatter/query/pickle_step_by_test_step.rb,
lib/cucumber/multiline_argument/data_table/diff_matrices.rb,
lib/cucumber/formatter/query/step_definitions_by_test_step.rb,
lib/cucumber/formatter/query/test_case_started_by_test_case.rb
Defined Under Namespace
Modules: Cli, Constantize, Events, Filters, FixRuby21Bug9285, Formatter, Gherkin, Glue, Hooks, LoadPath, MultilineArgument, Rake, RunningTestCase, StepMatchSearch, Term, WindowsOutput Classes: Ambiguous, AmbiguousStepMatch, Configuration, FeatureFolderNotFoundException, FileException, FileNotFoundException, FileSpecs, NoStepMatch, Pending, ProjectInitializer, Runtime, SkippingStepMatch, StepDefinitionLight, StepDefinitions, StepMatch, TagExcess, Undefined, UndefinedDynamicStep, Unit
Constant Summary collapse
- VERSION =
File.read(File.('../../VERSION', __dir__)).strip
- BINARY =
File.("#{File.dirname(__FILE__)}/../../bin/cucumber")
- LIBDIR =
File.("#{File.dirname(__FILE__)}/../../lib")
- RUBY_BINARY =
File.join(RbConfig::CONFIG['bindir'], RbConfig::CONFIG['ruby_install_name'])
- CODEPAGE =
'cp1252'
Class Attribute Summary collapse
-
.use_full_backtrace ⇒ Object
Returns the value of attribute use_full_backtrace.
-
.use_legacy_autoloader ⇒ Object
Returns the value of attribute use_legacy_autoloader.
-
.wants_to_quit ⇒ Object
Returns the value of attribute wants_to_quit.
Class Method Summary collapse
- .deprecate(message, method, remove_after_version) ⇒ Object
- .file_mode(mode, encoding = 'UTF-8') ⇒ Object
- .logger ⇒ Object
- .logger=(logger) ⇒ Object
Class Attribute Details
.use_full_backtrace ⇒ Object
Returns the value of attribute use_full_backtrace.
14 15 16 |
# File 'lib/cucumber/platform.rb', line 14 def use_full_backtrace @use_full_backtrace end |
.use_legacy_autoloader ⇒ Object
Returns the value of attribute use_legacy_autoloader.
13 14 15 |
# File 'lib/cucumber.rb', line 13 def use_legacy_autoloader @use_legacy_autoloader end |
.wants_to_quit ⇒ Object
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
.deprecate(message, method, remove_after_version) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/cucumber/deprecate.rb', line 7 def self.deprecate(, method, remove_after_version) $stderr.puts( "\nWARNING: ##{method} is deprecated" \ " and will be removed after version #{remove_after_version}. #{}.\n" \ "(Called from #{caller(3..3).first})" ) end |
.file_mode(mode, encoding = 'UTF-8') ⇒ Object
17 18 19 |
# File 'lib/cucumber/platform.rb', line 17 def file_mode(mode, encoding = 'UTF-8') "#{mode}:#{encoding}" end |
.logger ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/cucumber.rb', line 15 def logger return @log if @log @log = Logger.new($stdout) @log.level = Logger::INFO @log end |
.logger=(logger) ⇒ Object
23 24 25 |
# File 'lib/cucumber.rb', line 23 def logger=(logger) @log = logger end |