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