Sha256: 1b222c85537ba057536dcf5b1fb24acc0712bfc504e01c8d3763d82bedd3b669
Contents?: true
Size: 521 Bytes
Versions: 25
Compression:
Stored size: 521 Bytes
Contents
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 sep = subject.include?('#') ? '#' : '.' ns = subject.split(sep).first opts = { 'include' => 'lib', 'require' => 'rom', 'use' => 'rspec', 'ignore-subject' => "#{ns}#respond_to_missing?" }.to_a.map { |k, v| "--#{k} #{v}" }.join(' ') exec("bundle exec mutant #{opts} #{subject}") end end
Version data entries
25 entries across 25 versions & 1 rubygems