Sha256: 266ae0a635447100ff9f26bda6149184b14387210bf31291b8382c18f0278e57

Contents?: true

Size: 839 Bytes

Versions: 15

Compression:

Stored size: 839 Bytes

Contents

=begin
Copyright <%= copyright %>

See the file LICENSE for copying permission.
=end

if
  RUBY_VERSION == "2.0.0" # check Gemfile
then
  require "coveralls"
  require "simplecov"

  SimpleCov.start do
    formatter SimpleCov::Formatter::MultiFormatter[
      SimpleCov::Formatter::HTMLFormatter,
      Coveralls::SimpleCov::Formatter,
    ]
    command_name "Spesc Tests"
    add_filter "/test/"
  end

  Coveralls.noisy = true unless ENV['CI']
end

require 'minitest/autorun'
require "minitest/reporters"
require "mocha/setup"
require 'pluginator'

module PreCommit; module Helpers

  def test_files
    File.expand_path("../files", __FILE__)
  end

end; end

class MiniTest::Unit::TestCase
  include PreCommit::Helpers
end

Dir['lib/**/*.rb'].each { |file| require "./#{file}" } # coverals trick for all files

Minitest::Reporters.use!

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
pre-commit-0.40.0 templates/gem/test/minitest_helper.rb
pre-commit-0.39.0 templates/gem/test/minitest_helper.rb
pre-commit-0.38.1 templates/gem/test/minitest_helper.rb
pre-commit-0.38.0 templates/gem/test/minitest_helper.rb
pre-commit-0.37.0 templates/gem/test/minitest_helper.rb
pre-commit-0.36.0 templates/gem/test/minitest_helper.rb
pre-commit-0.35.0 templates/gem/test/minitest_helper.rb
pre-commit-0.34.0 templates/gem/test/minitest_helper.rb
pre-commit-0.33.0 templates/gem/test/minitest_helper.rb
pre-commit-0.32.0 templates/gem/test/minitest_helper.rb
pre-commit-0.31.0 templates/gem/test/minitest_helper.rb
pre-commit-0.30.0 templates/gem/test/minitest_helper.rb
pre-commit-0.29.0 templates/gem/test/minitest_helper.rb
pre-commit-0.28.0 templates/gem/test/minitest_helper.rb
pre-commit-0.27.0 templates/gem/test/minitest_helper.rb