Class: TestLauncher::CLI::Request
- Inherits:
-
Object
- Object
- TestLauncher::CLI::Request
- Defined in:
- lib/test_launcher/cli/request.rb
Instance Method Summary collapse
- #disable_spring? ⇒ Boolean
- #example_name ⇒ Object
- #force_spring? ⇒ Boolean
-
#initialize(search_string:, framework:, rerun: false, run_all: false, disable_spring: false, force_spring: false, example_name: nil, shell:, searcher:) ⇒ Request
constructor
A new instance of Request.
- #rerun? ⇒ Boolean
- #run_all? ⇒ Boolean
- #runner(*a) ⇒ Object
- #search_string ⇒ Object
- #searcher ⇒ Object
- #shell ⇒ Object
- #test_case(*a) ⇒ Object
Constructor Details
#initialize(search_string:, framework:, rerun: false, run_all: false, disable_spring: false, force_spring: false, example_name: nil, shell:, searcher:) ⇒ Request
Returns a new instance of Request.
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/test_launcher/cli/request.rb', line 4 def initialize( search_string:, framework:, rerun: false, run_all: false, disable_spring: false, force_spring: false, example_name: nil, shell:, searcher: ) @search_string = search_string @framework = framework @rerun = rerun @run_all = run_all @disable_spring = disable_spring @force_spring = force_spring @example_name = example_name @shell = shell @searcher = searcher end |
Instance Method Details
#disable_spring? ⇒ Boolean
38 39 40 |
# File 'lib/test_launcher/cli/request.rb', line 38 def disable_spring? @disable_spring end |
#example_name ⇒ Object
46 47 48 |
# File 'lib/test_launcher/cli/request.rb', line 46 def example_name @example_name end |
#force_spring? ⇒ Boolean
42 43 44 |
# File 'lib/test_launcher/cli/request.rb', line 42 def force_spring? @force_spring end |
#rerun? ⇒ Boolean
34 35 36 |
# File 'lib/test_launcher/cli/request.rb', line 34 def rerun? @rerun end |
#run_all? ⇒ Boolean
30 31 32 |
# File 'lib/test_launcher/cli/request.rb', line 30 def run_all? @run_all end |
#runner(*a) ⇒ Object
54 55 56 |
# File 'lib/test_launcher/cli/request.rb', line 54 def runner(*a) framework.runner(*a) end |
#search_string ⇒ Object
26 27 28 |
# File 'lib/test_launcher/cli/request.rb', line 26 def search_string @search_string end |
#searcher ⇒ Object
50 51 52 |
# File 'lib/test_launcher/cli/request.rb', line 50 def searcher framework.searcher(@searcher) end |
#shell ⇒ Object
62 63 64 |
# File 'lib/test_launcher/cli/request.rb', line 62 def shell @shell end |
#test_case(*a) ⇒ Object
58 59 60 |
# File 'lib/test_launcher/cli/request.rb', line 58 def test_case(*a) framework.test_case(*a) end |