class TestQueue::TestFramework::Cucumber
Public Instance Methods
all_suite_files()
click to toggle source
# File lib/test_queue/runner/cucumber.rb, line 92 def all_suite_files if runtime.respond_to?(:feature_files, true) runtime.send(:feature_files) else cli.configuration.feature_files end end
cli()
click to toggle source
# File lib/test_queue/runner/cucumber.rb, line 84 def cli @cli ||= ::Cucumber::Cli::Main.new(ARGV.dup, $stdin, $stdout, $stderr, FakeKernel.new) end
runtime()
click to toggle source
# File lib/test_queue/runner/cucumber.rb, line 88 def runtime @runtime ||= ::Cucumber::Runtime.new(cli.configuration) end
suites_from_file(path)
click to toggle source
# File lib/test_queue/runner/cucumber.rb, line 100 def suites_from_file(path) if defined?(::Cucumber::Core::Gherkin::Document) source = ::Cucumber::Runtime::NormalisedEncodingFile.read(path) doc = ::Cucumber::Core::Gherkin::Document.new(path, source) [[File.basename(doc.uri), doc]] else loader = ::Cucumber::Runtime::FeaturesLoader.new([path], cli.configuration.filters, cli.configuration.tag_expression) loader.features.map { |feature| [feature.title, feature] } end end