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
|
def start_suite
|
||||||
end
|
end
|
||||||
|
|
||||||
def end_suite(report : Report)
|
def end_suite(results : TestResults)
|
||||||
puts
|
puts
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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)
|
Loading…
Reference in a new issue