Sha256: 1fa6ed95f53a8408f5f06b2b07e3dad7d9fc6402aaf9d62282b809c582089f1f

Contents?: true

Size: 735 Bytes

Versions: 14

Compression:

Stored size: 735 Bytes

Contents

# encoding: utf-8

require 'devtools'

Devtools.init_rake_tasks

# Mutant self test is to slow for travis. Fast enough for circle.
if ENV['TRAVIS']
  Rake.application.load_imports

  task('metrics:mutant').clear
  namespace :metrics do
    task :mutant => :coverage do
      $stderr.puts 'Mutant self test via zombie not active on travis CI'
    end
  end
end

desc 'Generate mutation operator listing'
task :list do
  require 'mutant'
  # TODO: Add a nice public interface
  registry = Mutant::Mutator::Registry.send(:registry)
  registry.keys.select do |key|
    key.is_a?(Symbol)
  end.sort.each do |type|
    mutator = registry.fetch(type)
    puts '%-18s: %s' % [type, mutator.name.sub(/\AMutant::Mutator::Node::/, '')]
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
mutant-0.6.5 Rakefile
mutant-0.6.4 Rakefile
mutant-0.6.3 Rakefile
mutant-0.6.2 Rakefile
mutant-0.6.0 Rakefile
mutant-0.5.26 Rakefile
mutant-0.5.25 Rakefile
mutant-0.5.24 Rakefile
mutant-0.5.23 Rakefile
mutant-0.5.22 Rakefile
mutant-0.5.21 Rakefile
mutant-0.5.20 Rakefile
mutant-0.5.19 Rakefile
mutant-0.5.18 Rakefile