Class: TestLauncher::CLI::MultiFrameworkQuery
- Inherits:
-
Object
- Object
- TestLauncher::CLI::MultiFrameworkQuery
- Defined in:
- lib/test_launcher/cli.rb
Instance Attribute Summary collapse
-
#cli_options ⇒ Object
readonly
Returns the value of attribute cli_options.
Instance Method Summary collapse
- #command ⇒ Object
- #command_finders ⇒ Object
-
#initialize(cli_options) ⇒ MultiFrameworkQuery
constructor
A new instance of MultiFrameworkQuery.
- #request_for(framework) ⇒ Object
Constructor Details
#initialize(cli_options) ⇒ MultiFrameworkQuery
Returns a new instance of MultiFrameworkQuery.
11 12 13 |
# File 'lib/test_launcher/cli.rb', line 11 def initialize() @cli_options = end |
Instance Attribute Details
#cli_options ⇒ Object (readonly)
Returns the value of attribute cli_options.
10 11 12 |
# File 'lib/test_launcher/cli.rb', line 10 def @cli_options end |
Instance Method Details
#command ⇒ Object
15 16 17 18 19 20 21 22 |
# File 'lib/test_launcher/cli.rb', line 15 def command command = nil command_finders.each do |command_finder| command = command_finder.generic_search break if command end command end |
#command_finders ⇒ Object
24 25 26 27 28 |
# File 'lib/test_launcher/cli.rb', line 24 def command_finders .frameworks.map do |framework| Queries::CommandFinder.new(request_for(framework)) end end |
#request_for(framework) ⇒ Object
30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/test_launcher/cli.rb', line 30 def request_for(framework) Request.new( framework: framework, search_string: .search_string, rerun: .rerun, run_all: .run_all, disable_spring: .disable_spring, force_spring: .force_spring, example_name: .example_name, shell: .shell, searcher: .searcher, ) end |