Sha256: 7b95f3c3261a89444c37b02153ec310eb089bbe3044e0397998ac6996abd44e7

Contents?: true

Size: 466 Bytes

Versions: 13

Compression:

Stored size: 466 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 Transproc::Recursion"
  else
    opts = {
      'include' => 'lib',
      'require' => 'transproc/all',
      '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

13 entries across 13 versions & 1 rubygems

Version Path
transproc-1.0.3 rakelib/mutant.rake
transproc-1.0.2 rakelib/mutant.rake
transproc-1.0.1 rakelib/mutant.rake
transproc-1.0.0 rakelib/mutant.rake
transproc-0.4.2 rakelib/mutant.rake
transproc-0.4.1 rakelib/mutant.rake
transproc-0.4.0 rakelib/mutant.rake
transproc-0.3.2 rakelib/mutant.rake
transproc-0.3.1 rakelib/mutant.rake
transproc-0.3.0 rakelib/mutant.rake
transproc-0.2.4 rakelib/mutant.rake
transproc-0.2.3 rakelib/mutant.rake
transproc-0.2.2 rakelib/mutant.rake