Class: TestQueue::TestFramework::Cucumber
- Inherits:
-
TestQueue::TestFramework
- Object
- TestQueue::TestFramework
- TestQueue::TestFramework::Cucumber
- Defined in:
- lib/test_queue/runner/cucumber.rb
Defined Under Namespace
Classes: FakeKernel
Constant Summary
Constants inherited from TestQueue::TestFramework
Instance Method Summary collapse
Instance Method Details
#all_suite_files ⇒ Object
95 96 97 98 99 100 101 |
# File 'lib/test_queue/runner/cucumber.rb', line 95 def all_suite_files if runtime.respond_to?(:feature_files, true) runtime.send(:feature_files) else cli.configuration.feature_files end end |
#cli ⇒ Object
87 88 89 |
# File 'lib/test_queue/runner/cucumber.rb', line 87 def cli @cli ||= ::Cucumber::Cli::Main.new(ARGV.dup, $stdin, $stdout, $stderr, FakeKernel.new) end |
#runtime ⇒ Object
91 92 93 |
# File 'lib/test_queue/runner/cucumber.rb', line 91 def runtime @runtime ||= ::Cucumber::Runtime.new(cli.configuration) end |
#suites_from_file(path) ⇒ Object
103 104 105 106 107 108 109 110 111 112 113 114 115 |
# File 'lib/test_queue/runner/cucumber.rb', line 103 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 |