class Overcommit::Hook::PrePush::Minitest
Runs `minitest` test suite before push
Public Instance Methods
command()
click to toggle source
Calls superclass method
Overcommit::Hook::Base#command
# File lib/overcommit/hook/pre_push/minitest.rb, line 16 def command super + included_files.map { |file| "-r#{file}" } end
run()
click to toggle source
# File lib/overcommit/hook/pre_push/minitest.rb, line 8 def run result = execute(command) return :pass if result.success? output = result.stdout + result.stderr [:fail, output] end