2014-04-06 18:14:38 -04:00
|
|
|
# encoding: UTF-8
|
|
|
|
|
2014-06-02 11:10:32 -04:00
|
|
|
require 'parallel'
|
2014-04-06 18:14:38 -04:00
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
describe 'Mutant on ruby corpus' do
|
2014-04-09 12:01:47 -04:00
|
|
|
|
2014-05-26 13:16:02 -04:00
|
|
|
before do
|
2014-06-08 15:51:04 -04:00
|
|
|
skip 'Corpus test is deactivated on 1.9.3' if RUBY_VERSION.eql?('1.9.3')
|
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-06-09 11:13:13 -04:00
|
|
|
Project::ALL.select(&:mutation_generation).each do |project|
|
|
|
|
specify "#{project.name} does not fail on mutation generation" do
|
|
|
|
project.verify_mutation_generation
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
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
|