Sha256: c1b2c10e392b00fae4eef6af8e4be795e878cf617c5af6ca389ba9dd107dda3c

Contents?: true

Size: 1.23 KB

Versions: 5

Compression:

Stored size: 1.23 KB

Contents

#!/usr/bin/env ruby

# Turn on verbose to make sure we not generating any ruby warning
$VERBOSE = true

# So our "did they run the rspec command?" detection logic thinks
# that we run `rspec`.
$0 = "rspec"

# This is necessary for when `--standalone` is being used.
$:.unshift File.expand_path '../../bundle', __FILE__

# For the travis build we put the bundle directory up a directory
# so it can be shared among the repos for faster bundle installs.
$:.unshift File.expand_path '../../../bundle', __FILE__

require 'bundler/setup'

# To use simplecov while running rspec-core's test suite, we must
# load simplecov _before_ loading any of rspec-core's files.
# So, this executable exists purely as a wrapper script that
# first loads simplecov, and then loads rspec.
begin
  # Simplecov emits some ruby warnings when loaded, so silence them.
  old_verbose, $VERBOSE = $VERBOSE, false

  unless ENV['NO_COVERAGE'] || RUBY_VERSION.to_f < 2.1
    require 'simplecov'

    SimpleCov.start do
      add_filter "bundle/"
      add_filter "tmp/"
      add_filter "spec/"
      minimum_coverage(100)
    end
  end
rescue LoadError # rubocop:disable Lint/SuppressedException
ensure
  $VERBOSE = old_verbose
end

load File.expand_path("../../exe/rspec", __FILE__)

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
opal-rspec-1.1.0.alpha3 rspec-core/upstream/script/rspec_with_simplecov
opal-rspec-1.1.0.alpha2 rspec-core/upstream/script/rspec_with_simplecov
opal-rspec-1.1.0.alpha1 rspec-core/upstream/script/rspec_with_simplecov
opal-rspec-1.0.0 rspec-core/upstream/script/rspec_with_simplecov
opal-rspec-1.0.0.alpha1 rspec-core/upstream/script/rspec_with_simplecov