Sha256: ed9008e0d6c2b08bd95aea3c5ffc4dc5bd9f941225f3c75adcc1eafb6d25313e

Contents?: true

Size: 314 Bytes

Versions: 14

Compression:

Stored size: 314 Bytes

Contents

module Overcommit::Hook::PrePush
  # Runs `pytest` test suite before push
  #
  # @see https://github.com/pytest-dev/pytest
  class Pytest < Base
    def run
      result = execute(command)
      return :pass if result.success?

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

Version data entries

14 entries across 12 versions & 2 rubygems

Version Path
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/overcommit-0.46.0/lib/overcommit/hook/pre_push/pytest.rb
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/config_gems_initialization_aim-0.1.1/vendor/bundle/ruby/2.5.0/gems/overcommit-0.46.0/lib/overcommit/hook/pre_push/pytest.rb
config_gems_initialization_aim-0.1.3 vendor/bundle/ruby/2.5.0/gems/overcommit-0.46.0/lib/overcommit/hook/pre_push/pytest.rb
config_gems_initialization_aim-0.1.3 vendor/bundle/ruby/2.5.0/gems/config_gems_initialization_aim-0.1.1/vendor/bundle/ruby/2.5.0/gems/overcommit-0.46.0/lib/overcommit/hook/pre_push/pytest.rb
overcommit-0.46.0 lib/overcommit/hook/pre_push/pytest.rb
overcommit-0.45.0 lib/overcommit/hook/pre_push/pytest.rb
overcommit-0.44.0 lib/overcommit/hook/pre_push/pytest.rb
overcommit-0.43.0 lib/overcommit/hook/pre_push/pytest.rb
overcommit-0.42.0 lib/overcommit/hook/pre_push/pytest.rb
overcommit-0.41.0 lib/overcommit/hook/pre_push/pytest.rb
overcommit-0.40.0 lib/overcommit/hook/pre_push/pytest.rb
overcommit-0.39.1 lib/overcommit/hook/pre_push/pytest.rb
overcommit-0.39.0 lib/overcommit/hook/pre_push/pytest.rb
overcommit-0.38.0 lib/overcommit/hook/pre_push/pytest.rb