2014-12-12 20:06:04 -05:00
|
|
|
RSpec.describe 'Mutant on ruby corpus', mutant: false do
|
2014-04-09 12:01:47 -04:00
|
|
|
|
2014-05-26 13:16:02 -04:00
|
|
|
before do
|
2014-11-11 15:35:47 -05:00
|
|
|
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')
|
2014-05-26 13:16:02 -04:00
|
|
|
end
|
|
|
|
|
2014-07-12 12:49:46 -04:00
|
|
|
Corpus::Project::ALL.select(&:mutation_generation).each do |project|
|
2014-06-09 11:13:13 -04:00
|
|
|
specify "#{project.name} does not fail on mutation generation" do
|
|
|
|
project.verify_mutation_generation
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2014-07-12 12:49:46 -04:00
|
|
|
Corpus::Project::ALL.select(&:mutation_coverage).each do |project|
|
2014-07-11 19:00:13 -04:00
|
|
|
specify "#{project.name} does have expected mutation coverage" do
|
2014-06-09 11:13:13 -04:00
|
|
|
project.verify_mutation_coverage
|
2014-04-06 18:14:38 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|