mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Rename Report to TestResults
This commit is contained in:
parent
ac53394b8d
commit
b329afffb6
4 changed files with 4 additions and 5 deletions
|
@ -7,7 +7,7 @@ module Spectator
|
|||
def start_suite
|
||||
end
|
||||
|
||||
def end_suite(report : Report)
|
||||
def end_suite(results : TestResults)
|
||||
puts
|
||||
end
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
module Spectator
|
||||
class Report
|
||||
class TestResults
|
||||
getter runtime : Time::Span
|
||||
|
||||
@results : Array(Result)
|
Loading…
Reference in a new issue