free_mutant/Rakefile
2013-04-21 02:49:10 +02:00

16 lines
480 B
Ruby

require 'devtools'
Devtools.init_rake_tasks
namespace :metrics do
desc 'Run mutant'
task :mutant => :coverage do
project = Devtools.project
require File.expand_path('../spec/support/zombie.rb', __FILE__)
Zombie.setup
status = Zombie::CLI.run(%W(::Mutant --rspec-dm2))
if status.nonzero?
$stderr.puts 'Zombie task is not successful'
$stderr.puts 'Not fatal at this point of development, will be fixed before release of 0.3.0'
end
end
end