Sha256: ca4e7de9a49489d63955c7336609953f15e27cd8175e1f65511fca18fc22541b
Contents?: true
Size: 691 Bytes
Versions: 4
Compression:
Stored size: 691 Bytes
Contents
# frozen_string_literal: true require 'bundler/gem_tasks' require 'rspec/core/rake_task' task default: :test RSpec::Core::RakeTask.new('test:spec') do |t| e = ENV['E'] # match specs by name f = ENV['F'] # match specs by filename extra_opts = [] extra_opts << if e.nil? && f.nil? '-f progress --fail-fast' else '--color -f documentation' end extra_opts << " -e #{e}" unless e.nil? extra_opts = extra_opts.join t.pattern = 'spec/**/*_spec.rb' t.pattern = "spec/**/*#{f}*_spec.rb" unless f.nil? t.rspec_opts = "#{extra_opts} -b -c --tag ~benchmark" end desc 'Run test suite' task test: ['test:spec']
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
blackbox-4.0.3 | Rakefile |
blackbox-4.0.2 | Rakefile |
blackbox-4.0.1 | Rakefile |
blackbox-4.0.0 | Rakefile |