free_mutant/lib/mutant/config.rb

28 lines
642 B
Ruby
Raw Normal View History

module Mutant
# Standalone configuration of a mutant execution.
#
# Does not reference any "external" volatile state. The configuration applied
# to current environment is being represented by the Mutant::Env object.
class Config
2015-09-04 16:20:56 -04:00
include Adamantium::Flat, Anima.new(
:debug,
2014-06-28 19:04:18 -04:00
:integration,
:matcher,
:includes,
:requires,
:reporter,
:isolation,
:fail_fast,
:jobs,
:zombie,
:expected_coverage,
:expression_parser
)
2013-03-27 10:52:02 -04:00
%i[fail_fast zombie debug].each do |name|
define_method(:"#{name}?") { public_send(name) }
2014-06-28 18:54:28 -04:00
end
2013-06-14 14:54:02 -04:00
end # Config
end # Mutant