Rename Report to TestResults

This commit is contained in:
Michael Miller 2018-09-15 13:31:55 -06:00
parent ac53394b8d
commit b329afffb6
4 changed files with 4 additions and 5 deletions

View file

@ -7,7 +7,7 @@ module Spectator
def start_suite def start_suite
end end
def end_suite(report : Report) def end_suite(results : TestResults)
puts puts
end end

View file

@ -2,7 +2,7 @@ module Spectator
module Formatters module Formatters
abstract class Formatter abstract class Formatter
abstract def start_suite abstract def start_suite
abstract def end_suite(report : Report) abstract def end_suite(results : TestResults)
abstract def start_example(example : Example) abstract def start_example(example : Example)
abstract def end_example(result : Result) abstract def end_example(result : Result)
end end

View file

@ -15,8 +15,7 @@ module Spectator
end end
end end
end end
report = Report.new(results, elapsed) @formatter.end_suite(TestResults.new(results, elapsed))
@formatter.end_suite(report)
end end
end end
end end

View file

@ -1,5 +1,5 @@
module Spectator module Spectator
class Report class TestResults
getter runtime : Time::Span getter runtime : Time::Span
@results : Array(Result) @results : Array(Result)