Exception: Hatchet::FailedTestError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/hatchet/test_run.rb

Instance Method Summary collapse

Constructor Details

#initialize(app, output) ⇒ FailedTestError

Returns a new instance of FailedTestError.



5
6
7
8
9
10
11
# File 'lib/hatchet/test_run.rb', line 5

def initialize(app, output)
  msg = "Could not run tests on pipeline id: '#{app.pipeline_id}' (#{app.repo_name}) at path: '#{app.original_source_code_directory}'\n" <<
        " if this was expected add `allow_failure: true` to your hatchet initialization hash.\n" <<
        "output:\n" <<
        "#{output}"
  super(msg)
end