Sha256: e90351b265668454e6fe2f853f9ed76fb8b5289ae782b423b1bf1577402bccca
Contents?: true
Size: 706 Bytes
Versions: 12
Compression:
Stored size: 706 Bytes
Contents
require "bundler/setup" require 'rspec/retry' ENV["HATCHET_BUILDPACK_BASE"] = "<%= cmd("git config --get remote.origin.url") %>" require 'hatchet' require 'pathname' RSpec.configure do |config| # Enable flags like --only-failures and --next-failure config.example_status_persistence_file_path = ".rspec_status" config.verbose_retry = true # show retry status in spec process config.default_retry_count = 2 if ENV['IS_RUNNING_ON_CI'] # retry all tests that fail again config.expect_with :rspec do |c| c.syntax = :expect end end def run!(cmd) out = `#{cmd}` raise "Error running #{cmd}, output: #{out}" unless $?.success? out end def spec_dir Pathname.new(__dir__) end
Version data entries
12 entries across 12 versions & 1 rubygems