Sha256: fdfdc5a3cf6d07e0858ce29f73172558c55184821172eded1b9c69991d339349
Contents?: true
Size: 1.07 KB
Versions: 2
Compression:
Stored size: 1.07 KB
Contents
# frozen_string_literal: true require 'selenium-webdriver' require 'webdrivers' 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 load 'coverband/utils/railtie.rb' Coverband.configure("./test/rails#{Rails::VERSION::MAJOR}_dummy/config/coverband.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' Capybara.server = :webrick end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
coverband-4.2.1.rc2 | test/rails_test_helper.rb |
coverband-4.2.1.rc1 | test/rails_test_helper.rb |