Class: TestLauncher::CLI::Request

Inherits:
Object
  • Object
show all
Defined in:
lib/test_launcher/cli/request.rb

Instance Method Summary collapse

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

Returns:

  • (Boolean)


38
39
40
# File 'lib/test_launcher/cli/request.rb', line 38

def disable_spring?
  @disable_spring
end

#example_nameObject



46
47
48
# File 'lib/test_launcher/cli/request.rb', line 46

def example_name
  @example_name
end

#force_spring?Boolean

Returns:

  • (Boolean)


42
43
44
# File 'lib/test_launcher/cli/request.rb', line 42

def force_spring?
  @force_spring
end

#rerun?Boolean

Returns:

  • (Boolean)


34
35
36
# File 'lib/test_launcher/cli/request.rb', line 34

def rerun?
  @rerun
end

#run_all?Boolean

Returns:

  • (Boolean)


30
31
32
# File 'lib/test_launcher/cli/request.rb', line 30

def run_all?
  @run_all
end

#runner(*a, **o) ⇒ Object



54
55
56
# File 'lib/test_launcher/cli/request.rb', line 54

def runner(*a, **o)
  framework.runner(*a, **o)
end

#search_stringObject



26
27
28
# File 'lib/test_launcher/cli/request.rb', line 26

def search_string
  @search_string
end

#searcherObject



50
51
52
# File 'lib/test_launcher/cli/request.rb', line 50

def searcher
  framework.searcher(@searcher)
end

#shellObject



62
63
64
# File 'lib/test_launcher/cli/request.rb', line 62

def shell
  @shell
end

#test_case(*a, **o) ⇒ Object



58
59
60
# File 'lib/test_launcher/cli/request.rb', line 58

def test_case(*a, **o)
  framework.test_case(*a, **o)
end