Sha256: 17ac1a445a70a55df26316aea92cffef1112e1e540a3fd8c91cd79608ca26a36
Contents?: true
Size: 719 Bytes
Versions: 1
Compression:
Stored size: 719 Bytes
Contents
require "rspec/core/rake_task" RSpec::Core::RakeTask.new(:spec) task default: [:spec] begin require "rubocop/rake_task" Rake::Task[:default].enhance [:rubocop] RuboCop::RakeTask.new do |task| task.options << "--display-cop-names" end rescue LoadError end desc "Run mutant against a specific subject" task :mutant do subject = ARGV.last if subject == 'mutant' abort "usage: rake mutant SUBJECT\nexample: rake mutant ROM::Header" else opts = { 'include' => 'lib', 'require' => 'rom', 'use' => 'rspec', 'ignore-subject' => "#{subject}#respond_to_missing?" }.to_a.map { |k, v| "--#{k} #{v}" }.join(' ') exec("bundle exec mutant #{opts} #{subject}") end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rom-0.5.0 | Rakefile |