free_mutant/spec/integration/mutant/corpus_spec.rb
Markus Schirp f748393044 Deactivate corpus test under < 2.1
Does not support rational / complex literals.
2014-11-11 20:35:49 +00:00

19 lines
598 B
Ruby

RSpec.describe 'Mutant on ruby corpus' 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
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
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