2013-02-24 14:40:23 -05:00
|
|
|
module Mutant
|
2015-07-03 11:21:39 -04:00
|
|
|
# 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.
|
2013-02-24 14:40:23 -05:00
|
|
|
class Config
|
2015-09-04 16:20:56 -04:00
|
|
|
include Adamantium::Flat, Anima.new(
|
2013-09-13 16:28:04 -04:00
|
|
|
:debug,
|
2014-06-28 19:04:18 -04:00
|
|
|
:integration,
|
2014-12-22 13:27:12 -05:00
|
|
|
:matcher,
|
2014-07-03 17:16:12 -04:00
|
|
|
:includes,
|
|
|
|
:requires,
|
2013-09-13 16:28:04 -04:00
|
|
|
:reporter,
|
2014-07-05 22:11:31 -04:00
|
|
|
:isolation,
|
2013-09-13 16:28:04 -04:00
|
|
|
:fail_fast,
|
2014-09-24 15:16:39 -04:00
|
|
|
:jobs,
|
2014-01-18 18:06:40 -05:00
|
|
|
:zombie,
|
2015-06-21 10:44:33 -04:00
|
|
|
:expected_coverage,
|
|
|
|
:expression_parser
|
2013-02-24 14:40:23 -05:00
|
|
|
)
|
2013-03-27 10:52:02 -04:00
|
|
|
|
2015-05-31 16:44:09 -04:00
|
|
|
%i[fail_fast zombie debug].each do |name|
|
2014-07-03 17:16:12 -04:00
|
|
|
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
|