Sha256: c010c348f0f6586c4483e0abb0fa26f2ec0471042e4b672c41e8b98b5cdba466

Contents?: true

Size: 1.1 KB

Versions: 18

Compression:

Stored size: 1.1 KB

Contents

require 'tempfile'

require 'simplecov'
require 'coveralls'

if SimpleCov.usable?
  if defined?(TracePoint)
    require_relative 'racc_coverage_helper'

    RaccCoverage.start(%w(ruby18.y ruby19.y ruby20.y ruby21.y),
                       File.expand_path('../../lib/parser', __FILE__))

    # Report results faster.
    at_exit { RaccCoverage.stop }
  end

  require 'simplecov-sublime-ruby-coverage'

  SimpleCov.start do
    self.formatter = SimpleCov::Formatter::MultiFormatter[
      SimpleCov::Formatter::HTMLFormatter,
      SimpleCov::Formatter::SublimeRubyCoverageFormatter,
      Coveralls::SimpleCov::Formatter
    ]

    add_group 'Grammars' do |source_file|
      source_file.filename =~ %r{\.y$}
    end

    # Exclude the testsuite itself.
    add_filter '/test/'

    # Exclude generated files.
    add_filter do |source_file|
      source_file.filename =~ %r{/lib/parser/(lexer|ruby\d+)\.rb$}
    end
  end
end

# minitest/autorun must go after SimpleCov to preserve
# correct order of at_exit hooks.
require 'minitest/autorun'

$LOAD_PATH.unshift(File.expand_path('../../lib', __FILE__))
require 'parser'

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
parser-2.1.2 test/helper.rb
parser-2.1.1 test/helper.rb
parser-2.1.0 test/helper.rb
parser-2.1.0.pre2 test/helper.rb
parser-2.1.0.pre1 test/helper.rb
parser-2.0.0 test/helper.rb
parser-2.0.0.pre8 test/helper.rb
parser-2.0.0.pre7 test/helper.rb
parser-2.0.0.pre6 test/helper.rb
parser-2.0.0.pre5 test/helper.rb
parser-2.0.0.pre4 test/helper.rb
parser-2.0.0.pre3 test/helper.rb
parser-2.0.0.pre2 test/helper.rb
parser-2.0.0.pre1 test/helper.rb
parser-2.0.0.beta10 test/helper.rb
parser-2.0.0.beta9 test/helper.rb
parser-2.0.0.beta8 test/helper.rb
parser-2.0.0.beta7 test/helper.rb