Class: Devformance::TestFramework::Base
- Inherits:
-
Object
- Object
- Devformance::TestFramework::Base
- Defined in:
- lib/devformance/test_framework/base.rb
Instance Attribute Summary collapse
-
#root_path ⇒ Object
readonly
Returns the value of attribute root_path.
Instance Method Summary collapse
- #available? ⇒ Boolean
- #classify_line(line) ⇒ Object
- #discover_files ⇒ Object
- #file_pattern ⇒ Object
-
#initialize(root_path) ⇒ Base
constructor
A new instance of Base.
- #name ⇒ Object
- #parse_summary(output) ⇒ Object
- #run_command(file_path) ⇒ Object
- #runner_command ⇒ Object
Constructor Details
#initialize(root_path) ⇒ Base
6 7 8 |
# File 'lib/devformance/test_framework/base.rb', line 6 def initialize(root_path) @root_path = root_path end |
Instance Attribute Details
#root_path ⇒ Object (readonly)
Returns the value of attribute root_path.
4 5 6 |
# File 'lib/devformance/test_framework/base.rb', line 4 def root_path @root_path end |
Instance Method Details
#available? ⇒ Boolean
34 35 36 |
# File 'lib/devformance/test_framework/base.rb', line 34 def available? !discover_files.empty? end |
#classify_line(line) ⇒ Object
22 23 24 |
# File 'lib/devformance/test_framework/base.rb', line 22 def classify_line(line) raise NotImplementedError, "#{self.class} must implement #classify_line" end |
#discover_files ⇒ Object
10 11 12 |
# File 'lib/devformance/test_framework/base.rb', line 10 def discover_files raise NotImplementedError, "#{self.class} must implement #discover_files" end |
#file_pattern ⇒ Object
26 27 28 |
# File 'lib/devformance/test_framework/base.rb', line 26 def file_pattern raise NotImplementedError, "#{self.class} must implement #file_pattern" end |
#name ⇒ Object
30 31 32 |
# File 'lib/devformance/test_framework/base.rb', line 30 def name raise NotImplementedError, "#{self.class} must implement #name" end |
#parse_summary(output) ⇒ Object
18 19 20 |
# File 'lib/devformance/test_framework/base.rb', line 18 def parse_summary(output) raise NotImplementedError, "#{self.class} must implement #parse_summary" end |
#run_command(file_path) ⇒ Object
14 15 16 |
# File 'lib/devformance/test_framework/base.rb', line 14 def run_command(file_path) raise NotImplementedError, "#{self.class} must implement #run_command" end |
#runner_command ⇒ Object
38 39 40 |
# File 'lib/devformance/test_framework/base.rb', line 38 def runner_command raise NotImplementedError, "#{self.class} must implement #runner_command" end |