Sha256: d85d997d8c83481f8f7c8842cbc29d89c579e76ab787c2773a48d4b17cd1e727

Contents?: true

Size: 1019 Bytes

Versions: 49

Compression:

Stored size: 1019 Bytes

Contents

# frozen_string_literal: true

require "minitest"
require "minitest/fork_executor"

# Forked executor includes autorun which does not work with qrush/m
# https://github.com/qrush/m/issues/26
# https://github.com/seattlerb/minitest/blob/master/lib/minitest/autorun.rb
if defined?(M)
  Minitest.class_eval do
    def self.autorun
      puts "No autorunning"
    end
  end
end

Minitest.parallel_executor = Minitest::ForkExecutor.new
require File.expand_path("./test_helper", File.dirname(__FILE__))
require "capybara"
require "capybara/minitest"
def rails_setup
  ENV["RAILS_ENV"] = "test"
  require "rails"
  # coverband must be required after rails
  Coverband.configure("./test/rails#{Rails::VERSION::MAJOR}_dummy/config/coverband.rb")
  load "coverband/utils/railtie.rb"

  require_relative "../test/rails#{Rails::VERSION::MAJOR}_dummy/config/environment"
  require "capybara/rails"
  # Our coverage report is wrapped in display:none as of now
  Capybara.ignore_hidden_elements = false
  require "mocha/minitest"
end

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
coverband-6.1.4 test/rails_test_helper.rb
coverband-6.1.3 test/rails_test_helper.rb
coverband-6.1.2 test/rails_test_helper.rb
coverband-6.1.2.rc.1 test/rails_test_helper.rb
coverband-6.1.1 test/rails_test_helper.rb
coverband-6.1.0 test/rails_test_helper.rb
coverband-6.0.3.rc.4 test/rails_test_helper.rb
coverband-6.0.3.rc.3 test/rails_test_helper.rb
coverband-6.0.3.rc.2 test/rails_test_helper.rb
coverband-6.0.3.rc.1 test/rails_test_helper.rb
coverband-6.0.2 test/rails_test_helper.rb
coverband-6.0.1 test/rails_test_helper.rb
coverband-6.0.1.rc.1 test/rails_test_helper.rb
coverband-6.0.0 test/rails_test_helper.rb
coverband-5.2.6.rc.6 test/rails_test_helper.rb
coverband-5.2.3.2 test/rails_test_helper.rb
coverband-5.2.6.rc.5 test/rails_test_helper.rb
coverband-5.2.3.1 test/rails_test_helper.rb
coverband-5.2.6.rc.4 test/rails_test_helper.rb
coverband-5.2.6.rc.3 test/rails_test_helper.rb