Sha256: fdcb4823f4fa3c55b1b8ab0c64987d82dc169841f3e669735530b9c56df4eaba

Contents?: true

Size: 586 Bytes

Versions: 1

Compression:

Stored size: 586 Bytes

Contents

require 'devtools'
Devtools.init_rake_tasks

class Rake::Task
  def overwrite(&block)
    @actions.clear
    enhance(&block)
  end
end

Rake.application.load_imports

begin
  require 'mutant'
rescue LoadError
end

mutant_present = defined?(Mutant)

allowed_versions = %w(mri-1.9.3 rbx-1.9.3)

if allowed_versions.include?(Devtools.rvm) and mutant_present and !ENV['DEVTOOLS_SELF']
  Rake::Task['metrics:mutant'].overwrite do
    status = Mutant::CLI.run(%W(--rspec-full -r ./spec/spec_helper.rb ::Concord))
    unless status.zero?
      fail "Not mutation covered :("
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
concord-0.1.1 Rakefile