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 20:20:56 +00:00
include Adamantium::Flat, Anima.new(
:debug,
2014-06-28 23:04:18 +00:00
:integration,
:matcher,
:includes,
:requires,
:reporter,
:isolation,
:fail_fast,
:jobs,
:zombie,
:expected_coverage,
:expression_parser
)
2013-03-27 15:52:02 +01:00
%i[fail_fast zombie debug].each do |name|
define_method(:"#{name}?") { public_send(name) }
2014-06-28 22:54:28 +00:00
end
2013-06-14 20:54:02 +02:00
end # Config
end # Mutant