shard-spectator/src/spectator/config.cr

17 lines
472 B
Crystal
Raw Normal View History

module Spectator
# Provides customization and describes specifics for how Spectator will run and report tests.
class Config
2018-12-13 21:16:49 +00:00
# Used to report test progress and results.
getter formatter : Formatting::Formatter
2018-12-13 21:16:49 +00:00
2019-03-22 05:40:00 +00:00
# Indicates whether the test should abort on first failure.
getter? fail_fast : Bool
2018-12-13 21:16:49 +00:00
# Creates a new configuration.
def initialize(builder)
@formatter = builder.formatter
2019-03-22 05:40:00 +00:00
@fail_fast = builder.fail_fast?
2018-12-13 21:16:49 +00:00
end
end
end