Class: TestLauncher::Frameworks::Base::Runner
- Inherits:
-
Object
- Object
- TestLauncher::Frameworks::Base::Runner
show all
- Defined in:
- lib/test_launcher/frameworks/base.rb
Instance Method Summary
collapse
Constructor Details
#initialize ⇒ Runner
Returns a new instance of Runner.
46
47
48
|
# File 'lib/test_launcher/frameworks/base.rb', line 46
def initialize(*, **)
super()
end
|
Instance Method Details
#by_line_number(test_case) ⇒ Object
50
51
52
|
# File 'lib/test_launcher/frameworks/base.rb', line 50
def by_line_number(test_case)
raise NotImplementedError
end
|
#multiple_examples(collection) ⇒ Object
70
71
72
73
74
75
|
# File 'lib/test_launcher/frameworks/base.rb', line 70
def multiple_examples(collection)
collection
.group_by(&:app_root)
.map { |_root, test_cases| multiple_examples_same_root(test_cases) }
.join("; cd -;\n\n")
end
|
#multiple_examples_same_file(test_cases) ⇒ Object
58
59
60
|
# File 'lib/test_launcher/frameworks/base.rb', line 58
def multiple_examples_same_file(test_cases)
raise NotImplementedError
end
|
#multiple_files(collection) ⇒ Object
77
78
79
80
81
82
|
# File 'lib/test_launcher/frameworks/base.rb', line 77
def multiple_files(collection)
collection
.group_by(&:app_root)
.map { |_root, test_cases| one_or_more_files(test_cases) }
.join("; cd -;\n\n")
end
|
#one_or_more_files(test_cases) ⇒ Object
62
63
64
|
# File 'lib/test_launcher/frameworks/base.rb', line 62
def one_or_more_files(test_cases)
raise NotImplementedError
end
|
#single_example(test_case) ⇒ Object
54
55
56
|
# File 'lib/test_launcher/frameworks/base.rb', line 54
def single_example(test_case)
raise NotImplementedError
end
|
#single_file(test_case) ⇒ Object
66
67
68
|
# File 'lib/test_launcher/frameworks/base.rb', line 66
def single_file(test_case)
one_or_more_files([test_case])
end
|