Class: QuietQuality::Tools::Rspec::Runner
Constant Summary
QuietQuality::Tools::RelevantRunner::MAX_FILES
Constants inherited
from BaseRunner
BaseRunner::MAX_FILES
Instance Method Summary
collapse
#command, #exec_command, #invoke!
Methods inherited from BaseRunner
#command, #exec_command, #failure_status?, #initialize, #invoke!, #success_status?
Methods included from Logging
#debug, #info, #warn
Instance Method Details
#base_command ⇒ Object
13
14
15
|
# File 'lib/quiet_quality/tools/rspec/runner.rb', line 13
def base_command
["rspec", "-f", "json"]
end
|
#base_exec_command ⇒ Object
17
18
19
|
# File 'lib/quiet_quality/tools/rspec/runner.rb', line 17
def base_exec_command
["rspec"]
end
|
#no_files_output ⇒ Object
9
10
11
|
# File 'lib/quiet_quality/tools/rspec/runner.rb', line 9
def no_files_output
'{"examples": [], "summary": {"failure_count": 0}}'
end
|
#relevant_path?(path) ⇒ Boolean
21
22
23
|
# File 'lib/quiet_quality/tools/rspec/runner.rb', line 21
def relevant_path?(path)
path.end_with?("_spec.rb")
end
|
5
6
7
|
# File 'lib/quiet_quality/tools/rspec/runner.rb', line 5
def tool_name
TOOL_NAME
end
|