Sha256: aa782c0d1f6011d874c7941fca76b033f51d3a9122b54700b733c00af31b05e4

Contents?: true

Size: 466 Bytes

Versions: 1

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

1 entries across 1 versions & 1 rubygems

Version Path
transproc-0.2.1 rakelib/mutant.rake