Sha256: 962b989956981386f5942a188f40138641704308a0f138a634fdd39372a5ef1c

Contents?: true

Size: 1.13 KB

Versions: 13

Compression:

Stored size: 1.13 KB

Contents

require 'tempfile'

require 'simplecov'
require 'coveralls'

if ENV.include?('COVERAGE') && 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

13 entries across 13 versions & 2 rubygems

Version Path
rubyjobbuilderdsl-0.0.2 vendor/bundle/ruby/2.1.0/gems/parser-2.2.0.pre.4/test/helper.rb
rubyjobbuilderdsl-0.0.1 vendor/bundle/ruby/2.1.0/gems/parser-2.2.0.pre.4/test/helper.rb
parser-2.2.0.pre.4 test/helper.rb
parser-2.2.0.pre.3 test/helper.rb
parser-2.2.0.pre.2 test/helper.rb
parser-2.2.0.pre.1 test/helper.rb
parser-2.1.9 test/helper.rb
parser-2.1.8 test/helper.rb
parser-2.1.7 test/helper.rb
parser-2.1.6 test/helper.rb
parser-2.1.5 test/helper.rb
parser-2.1.4 test/helper.rb
parser-2.1.3 test/helper.rb