free_mutant/spec/integration/mutant/corpus_spec.rb

20 lines
637 B
Ruby
Raw Normal View History

RSpec.describe 'Mutant on ruby corpus', mutant: false do
2014-04-09 12:01:47 -04:00
before do
skip 'Corpus test is deactivated on < 2.1' if RUBY_VERSION < '2.1'
2014-06-08 19:30:42 -04:00
skip 'Corpus test is deactivated on RBX' if RUBY_ENGINE.eql?('rbx')
end
2015-06-13 01:04:07 -04:00
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
2015-06-13 01:04:07 -04:00
MutantSpec::Corpus::Project::ALL.select(&:mutation_coverage).each do |project|
specify "#{project.name} does have expected mutation coverage" do
project.verify_mutation_coverage
2014-04-06 18:14:38 -04:00
end
end
end