Sha256: ae96bdea9e8e6eef9fd1cea9d76d15addb68bfd1c369d6e4c288b7e8d454ce74

Contents?: true

Size: 775 Bytes

Versions: 13

Compression:

Stored size: 775 Bytes

Contents

# encoding: utf-8

require 'devtools'

Devtools.init_rake_tasks

# Frequent lookups in MRI make mutation analysis getting stuck on CI
# See: https://github.com/mbj/mutant/issues/265
if ENV['CI']
  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 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

13 entries across 13 versions & 1 rubygems

Version Path
mutant-0.8.1 Rakefile
mutant-0.8.0 Rakefile
mutant-0.7.9 Rakefile
mutant-0.7.8 Rakefile
mutant-0.7.7 Rakefile
mutant-0.7.6 Rakefile
mutant-0.7.5 Rakefile
mutant-0.7.4 Rakefile
mutant-0.7.3 Rakefile
mutant-0.7.2 Rakefile
mutant-0.7.1 Rakefile
mutant-0.6.7 Rakefile
mutant-0.6.6 Rakefile