Class: Devformance::TestFramework::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/devformance/test_framework/base.rb

Direct Known Subclasses

Minitest, RSpec

Instance Attribute Summary collapse

Instance Method Summary collapse

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_pathObject (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

Raises:

  • (NotImplementedError)


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_filesObject

Raises:

  • (NotImplementedError)


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_patternObject

Raises:

  • (NotImplementedError)


26
27
28
# File 'lib/devformance/test_framework/base.rb', line 26

def file_pattern
  raise NotImplementedError, "#{self.class} must implement #file_pattern"
end

#nameObject

Raises:

  • (NotImplementedError)


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

Raises:

  • (NotImplementedError)


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

Raises:

  • (NotImplementedError)


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_commandObject

Raises:

  • (NotImplementedError)


38
39
40
# File 'lib/devformance/test_framework/base.rb', line 38

def runner_command
  raise NotImplementedError, "#{self.class} must implement #runner_command"
end