class Overcommit::Hook::PrePush::Pytest

Runs `pytest` test suite before push

@see github.com/pytest-dev/pytest

Public Instance Methods

run() click to toggle source
# File lib/overcommit/hook/pre_push/pytest.rb, line 8
def run
  result = execute(command)
  return :pass if result.success?

  output = result.stdout + result.stderr
  [:fail, output]
end