Add configuration of corpus test integrations
This commit is contained in:
parent
91c52f323f
commit
e91490923d
3 changed files with 8 additions and 2 deletions
|
@ -8,7 +8,7 @@ RSpec.describe 'Mutant on ruby corpus', mutant: false do
|
|||
end
|
||||
|
||||
MutantSpec::Corpus::Project::ALL.select(&:mutation_coverage).each do |project|
|
||||
specify "#{project.name} does have expected mutation coverage" do
|
||||
specify "#{project.name} (#{project.integration}) does have expected mutation coverage" do
|
||||
project.verify_mutation_coverage
|
||||
end
|
||||
end
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
namespace: Rubyspec
|
||||
repo_uri: 'https://github.com/ruby/rubyspec.git'
|
||||
repo_ref: 'origin/master'
|
||||
integration: mspec
|
||||
ruby_glob_pattern: '**/*_spec.rb'
|
||||
mutation_coverage: false
|
||||
mutation_generation: true
|
||||
|
@ -24,6 +25,7 @@
|
|||
namespace: Regexp
|
||||
repo_uri: 'https://github.com/ammar/regexp_parser.git'
|
||||
repo_ref: 'v1.2.0'
|
||||
integration: rspec
|
||||
ruby_glob_pattern: '**/*.rb'
|
||||
mutation_coverage: false
|
||||
mutation_generation: true
|
||||
|
@ -34,6 +36,7 @@
|
|||
repo_uri: 'https://github.com/mbj/auom.git'
|
||||
repo_ref: 'origin/master'
|
||||
ruby_glob_pattern: '**/*.rb'
|
||||
integration: rspec
|
||||
mutation_coverage: true
|
||||
mutation_generation: true
|
||||
expected_errors: {}
|
||||
|
@ -43,6 +46,7 @@
|
|||
repo_uri: 'https://github.com/dkubb/axiom.git'
|
||||
repo_ref: 'origin/master'
|
||||
ruby_glob_pattern: '**/*.rb'
|
||||
integration: rspec
|
||||
mutation_coverage: false
|
||||
mutation_generation: true
|
||||
expected_errors: {}
|
||||
|
|
|
@ -37,6 +37,7 @@ module MutantSpec
|
|||
:expected_errors,
|
||||
:mutation_coverage,
|
||||
:mutation_generation,
|
||||
:integration,
|
||||
:name,
|
||||
:namespace,
|
||||
:repo_uri,
|
||||
|
@ -59,7 +60,7 @@ module MutantSpec
|
|||
system(
|
||||
%W[
|
||||
bundle exec mutant
|
||||
--use rspec
|
||||
--use #{integration}
|
||||
--include lib
|
||||
--require #{name}
|
||||
#{namespace}*
|
||||
|
@ -315,6 +316,7 @@ module MutantSpec
|
|||
s(:key_symbolize, :ruby_glob_pattern, s(:guard, s(:primitive, String))),
|
||||
s(:key_symbolize, :name, s(:guard, s(:primitive, String))),
|
||||
s(:key_symbolize, :namespace, s(:guard, s(:primitive, String))),
|
||||
s(:key_symbolize, :integration, s(:guard, s(:primitive, String))),
|
||||
s(:key_symbolize, :mutation_coverage,
|
||||
s(:guard, s(:or, s(:primitive, TrueClass), s(:primitive, FalseClass)))),
|
||||
s(:key_symbolize, :mutation_generation,
|
||||
|
|
Loading…
Add table
Reference in a new issue