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
end
def end_suite(report : Report)
def end_suite(results : TestResults)
puts
end

View file

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

View file

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

View file

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