free_mutant/spec/integration/mutant/corpus_spec.rb
2018-09-12 13:15:43 +00:00

21 lines
668 B
Ruby

# frozen_string_literal: true
RSpec.describe 'Mutant on ruby corpus', mutant: false do
before do
skip 'Corpus test is deactivated on < 2.1' if RUBY_VERSION < '2.1'
skip 'Corpus test is deactivated on RBX' if RUBY_ENGINE.eql?('rbx')
end
MutantSpec::Corpus::Project::ALL.select(&:mutation_generation).each do |project|
specify "#{project.name} does not fail on mutation generation" do
project.verify_mutation_generation
end
end
MutantSpec::Corpus::Project::ALL.select(&:mutation_coverage).each do |project|
specify "#{project.name} does have expected mutation coverage" do
project.verify_mutation_coverage
end
end
end