Provide mutant specific metrics:mutant task
This commit is contained in:
parent
e90f3c86aa
commit
02164cf289
1 changed files with 13 additions and 0 deletions
13
Rakefile
13
Rakefile
|
@ -1,2 +1,15 @@
|
|||
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?
|
||||
raise 'Mutant task is not successful'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue