begin
  require 'simplecov'
  SimpleCov.start do
    add_filter 'spec/' # Exclude RSpec files from coverage
  end
rescue LoadError
  $stderr.puts 'NOTE: SimpleCov is not installed'
end

require 'rspec/eventually'

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

RSpec.configure do |config|
  config.around(:each) { |example| Timeout.timeout(1, &example) }
end

require 'rspec/eventually'
Rspec::Eventually.timeout = 0.5

begin
  require 'simplecov'
  SimpleCov.start do
    add_filter 'spec/' # Exclude RSpec files from coverage
  end
rescue LoadError
  $stderr.puts 'NOTE: SimpleCov is not installed'
end

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

Set up stricter timeouts for tests
Set up stricter timeouts for tests

Set stricter timeouts for rspec/eventually as well as all tests in
general. When mutation testing, this prevents infinite cases from being
generated.
