diff --git a/src/spectator/formatters/default_formatter.cr b/src/spectator/formatters/default_formatter.cr index c2e964c..43283fa 100644 --- a/src/spectator/formatters/default_formatter.cr +++ b/src/spectator/formatters/default_formatter.cr @@ -13,7 +13,7 @@ module Spectator::Formatters ERROR_CHAR = 'E'.colorize(ERROR_COLOR) PENDING_CHAR = '*'.colorize(PENDING_COLOR) - def start_suite + def start_suite(suite : TestSuite) end def end_suite(report : Report) diff --git a/src/spectator/formatters/formatter.cr b/src/spectator/formatters/formatter.cr index 8ede7fd..34a3063 100644 --- a/src/spectator/formatters/formatter.cr +++ b/src/spectator/formatters/formatter.cr @@ -10,7 +10,7 @@ module Spectator::Formatters # Steps 2 and 3 are called for each example in the suite. abstract class Formatter # Called when a test suite is starting to execute. - abstract def start_suite + abstract def start_suite(suite : TestSuite) # Called when a test suite finishes. # The results from the entire suite are provided. diff --git a/src/spectator/runner.cr b/src/spectator/runner.cr index 8552f37..bd73efb 100644 --- a/src/spectator/runner.cr +++ b/src/spectator/runner.cr @@ -11,7 +11,7 @@ module Spectator # and invoke the formatter to output results. def run : Nil # Indicate the suite is starting. - @config.formatter.start_suite + @config.formatter.start_suite(@suite) # Run all examples and capture the results. results = [] of Result