Class: TestLauncher::Frameworks::Generic::Runner

Inherits:
Base::Runner
  • Object
show all
Defined in:
lib/test_launcher/frameworks/generic.rb

Instance Method Summary collapse

Methods inherited from Base::Runner

#initialize, #multiple_examples, #multiple_files, #single_file

Constructor Details

This class inherits a constructor from TestLauncher::Frameworks::Base::Runner

Instance Method Details

#by_line_number(test_case) ⇒ Object

Raises:



52
53
54
# File 'lib/test_launcher/frameworks/generic.rb', line 52

def (test_case)
  raise NotSupportedError.new("You should not have hit this error. File an issue. :(")
end

#multiple_examples_same_file(test_cases) ⇒ Object

Raises:



60
61
62
# File 'lib/test_launcher/frameworks/generic.rb', line 60

def multiple_examples_same_file(test_cases)
  raise NotSupportedError.new("You should not have hit this error. File an issue. :(")
end

#multiple_examples_same_root(test_cases) ⇒ Object

Raises:



64
65
66
# File 'lib/test_launcher/frameworks/generic.rb', line 64

def multiple_examples_same_root(test_cases)
  raise NotSupportedError.new("You should not have hit this error. File an issue. :(")
end

#one_or_more_files(test_cases) ⇒ Object



68
69
70
# File 'lib/test_launcher/frameworks/generic.rb', line 68

def one_or_more_files(test_cases)
  %{#{test_cases.first.file_runner} #{test_cases.map(&:file).uniq.join(" ")}}
end

#single_example(test_case, name: test_case.example, exact_match: false) ⇒ Object

Raises:



56
57
58
# File 'lib/test_launcher/frameworks/generic.rb', line 56

def single_example(test_case, name: test_case.example, exact_match: false)
  raise NotSupportedError.new("You should not have hit this error. File an issue. :(")
end