Define notification type for messages

This commit is contained in:
Michael Miller 2021-05-29 22:59:56 -06:00
parent 76c525de52
commit 48fb293ba0
No known key found for this signature in database
GPG key ID: F9A0C5C65B162436
2 changed files with 4 additions and 0 deletions

View file

@ -78,6 +78,7 @@ module Spectator::Formatting
# Called whenever the example or framework produces a message.
# This is typically used for logging.
# The *notification* will be a `MessageNotification` type of object.
def message(_notification)
end

View file

@ -17,4 +17,7 @@ module Spectator::Formatting
# Structure containing summarized information from the outcome of the test suite.
record SummaryNotification, report : Report
# Structure containing a debug or log message from the test suite.
record MessageNotification, message : String
end