Define glob pattern for each repo
This commit is contained in:
parent
ebe5d8a24b
commit
3165e4f9bd
2 changed files with 8 additions and 3 deletions
|
@ -3,6 +3,7 @@
|
||||||
namespace: Rubyspec
|
namespace: Rubyspec
|
||||||
repo_uri: 'https://github.com/ruby/rubyspec.git'
|
repo_uri: 'https://github.com/ruby/rubyspec.git'
|
||||||
repo_ref: 'origin/master'
|
repo_ref: 'origin/master'
|
||||||
|
ruby_glob_pattern: '**/*_spec.rb'
|
||||||
mutation_coverage: false
|
mutation_coverage: false
|
||||||
mutation_generation: true
|
mutation_generation: true
|
||||||
expected_errors:
|
expected_errors:
|
||||||
|
@ -18,6 +19,7 @@
|
||||||
namespace: Regexp
|
namespace: Regexp
|
||||||
repo_uri: 'https://github.com/ammar/regexp_parser.git'
|
repo_uri: 'https://github.com/ammar/regexp_parser.git'
|
||||||
repo_ref: 'v0.4.1'
|
repo_ref: 'v0.4.1'
|
||||||
|
ruby_glob_pattern: '**/*.rb'
|
||||||
mutation_coverage: false
|
mutation_coverage: false
|
||||||
mutation_generation: true
|
mutation_generation: true
|
||||||
expected_errors:
|
expected_errors:
|
||||||
|
@ -27,6 +29,7 @@
|
||||||
namespace: AUOM
|
namespace: AUOM
|
||||||
repo_uri: 'https://github.com/mbj/auom.git'
|
repo_uri: 'https://github.com/mbj/auom.git'
|
||||||
repo_ref: 'origin/master'
|
repo_ref: 'origin/master'
|
||||||
|
ruby_glob_pattern: '**/*.rb'
|
||||||
mutation_coverage: true
|
mutation_coverage: true
|
||||||
mutation_generation: true
|
mutation_generation: true
|
||||||
expected_errors: {}
|
expected_errors: {}
|
||||||
|
@ -34,6 +37,7 @@
|
||||||
namespace: Axiom
|
namespace: Axiom
|
||||||
repo_uri: 'https://github.com/dkubb/axiom.git'
|
repo_uri: 'https://github.com/dkubb/axiom.git'
|
||||||
repo_ref: 'origin/master'
|
repo_ref: 'origin/master'
|
||||||
|
ruby_glob_pattern: '**/*.rb'
|
||||||
mutation_coverage: false
|
mutation_coverage: false
|
||||||
mutation_generation: true
|
mutation_generation: true
|
||||||
expected_errors: {}
|
expected_errors: {}
|
||||||
|
|
|
@ -12,7 +12,6 @@ module MutantSpec
|
||||||
module Corpus
|
module Corpus
|
||||||
TMP = ROOT.join('tmp').freeze
|
TMP = ROOT.join('tmp').freeze
|
||||||
EXCLUDE_GLOB_FORMAT = '{%s}'.freeze
|
EXCLUDE_GLOB_FORMAT = '{%s}'.freeze
|
||||||
RUBY_GLOB_PATTERN = '**/*.rb'.freeze
|
|
||||||
|
|
||||||
# Not in the docs. Number from chatting with their support.
|
# Not in the docs. Number from chatting with their support.
|
||||||
# 2 processors allocated per container, 4 processes works well.
|
# 2 processors allocated per container, 4 processes works well.
|
||||||
|
@ -38,7 +37,8 @@ module MutantSpec
|
||||||
:name,
|
:name,
|
||||||
:namespace,
|
:namespace,
|
||||||
:repo_uri,
|
:repo_uri,
|
||||||
:repo_ref
|
:repo_ref,
|
||||||
|
:ruby_glob_pattern
|
||||||
)
|
)
|
||||||
|
|
||||||
# Verify mutation coverage
|
# Verify mutation coverage
|
||||||
|
@ -174,7 +174,7 @@ module MutantSpec
|
||||||
# @return [Array<Pathname>]
|
# @return [Array<Pathname>]
|
||||||
def effective_ruby_paths
|
def effective_ruby_paths
|
||||||
Pathname
|
Pathname
|
||||||
.glob(repo_path.join(RUBY_GLOB_PATTERN))
|
.glob(repo_path.join(ruby_glob_pattern))
|
||||||
.sort_by(&:size)
|
.sort_by(&:size)
|
||||||
.reverse
|
.reverse
|
||||||
end
|
end
|
||||||
|
@ -307,6 +307,7 @@ module MutantSpec
|
||||||
s(:hash_transform,
|
s(:hash_transform,
|
||||||
s(:key_symbolize, :repo_uri, s(:guard, s(:primitive, String))),
|
s(:key_symbolize, :repo_uri, s(:guard, s(:primitive, String))),
|
||||||
s(:key_symbolize, :repo_ref, s(:guard, s(:primitive, String))),
|
s(:key_symbolize, :repo_ref, s(:guard, s(:primitive, String))),
|
||||||
|
s(:key_symbolize, :ruby_glob_pattern, s(:guard, s(:primitive, String))),
|
||||||
s(:key_symbolize, :name, 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, :namespace, s(:guard, s(:primitive, String))),
|
||||||
s(:key_symbolize, :mutation_coverage,
|
s(:key_symbolize, :mutation_coverage,
|
||||||
|
|
Loading…
Add table
Reference in a new issue