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

Version Path
rom-3.3.3 rakelib/mutant.rake
rom-3.3.2 rakelib/mutant.rake
rom-3.3.1 rakelib/mutant.rake
rom-3.3.0 rakelib/mutant.rake
rom-3.2.3 rakelib/mutant.rake
rom-3.2.2 rakelib/mutant.rake
rom-3.2.1 rakelib/mutant.rake
rom-3.2.0 rakelib/mutant.rake
rom-3.1.0 rakelib/mutant.rake
rom-3.0.3 rakelib/mutant.rake
rom-3.0.2 rakelib/mutant.rake
rom-3.0.1 rakelib/mutant.rake
rom-3.0.0 rakelib/mutant.rake
rom-3.0.0.rc2 rakelib/mutant.rake
rom-3.0.0.rc1 rakelib/mutant.rake
rom-3.0.0.beta3 rakelib/mutant.rake
rom-3.0.0.beta2 rakelib/mutant.rake
rom-3.0.0.beta1 rakelib/mutant.rake
rom-2.0.2 rakelib/mutant.rake
rom-2.0.1 rakelib/mutant.rake