mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Set up placeholder formatters
This commit is contained in:
parent
ff084bb3cd
commit
83c4b01e84
5 changed files with 60 additions and 2 deletions
|
@ -6,8 +6,7 @@ module Spectator::Formatting
|
|||
class BroadcastFormatter < Formatter
|
||||
# Creates the broadcast formatter.
|
||||
# Takes a collection of formatters to pass events along to.
|
||||
def initialize(formatters : Enumerable(Formatter))
|
||||
@formatters = formatters.to_a
|
||||
def initialize(@formatters : Enumerable(Formatter))
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
14
src/spectator/formatting/document_formatter.cr
Normal file
14
src/spectator/formatting/document_formatter.cr
Normal file
|
@ -0,0 +1,14 @@
|
|||
require "./formatter"
|
||||
|
||||
module Spectator::Formatting
|
||||
class DocumentFormatter < Formatter
|
||||
def pass(notification)
|
||||
end
|
||||
|
||||
def fail(notification)
|
||||
end
|
||||
|
||||
def pending(notification)
|
||||
end
|
||||
end
|
||||
end
|
14
src/spectator/formatting/json_formatter.cr
Normal file
14
src/spectator/formatting/json_formatter.cr
Normal file
|
@ -0,0 +1,14 @@
|
|||
require "./formatter"
|
||||
|
||||
module Spectator::Formatting
|
||||
class JSONFormatter < Formatter
|
||||
def pass(notification)
|
||||
end
|
||||
|
||||
def fail(notification)
|
||||
end
|
||||
|
||||
def pending(notification)
|
||||
end
|
||||
end
|
||||
end
|
17
src/spectator/formatting/junit_formatter.cr
Normal file
17
src/spectator/formatting/junit_formatter.cr
Normal file
|
@ -0,0 +1,17 @@
|
|||
require "./formatter"
|
||||
|
||||
module Spectator::Formatting
|
||||
class JUnitFormatter < Formatter
|
||||
def initialize(output_dir)
|
||||
end
|
||||
|
||||
def pass(notification)
|
||||
end
|
||||
|
||||
def fail(notification)
|
||||
end
|
||||
|
||||
def pending(notification)
|
||||
end
|
||||
end
|
||||
end
|
14
src/spectator/formatting/tap_formatter.cr
Normal file
14
src/spectator/formatting/tap_formatter.cr
Normal file
|
@ -0,0 +1,14 @@
|
|||
require "./formatter"
|
||||
|
||||
module Spectator::Formatting
|
||||
class TAPFormatter < Formatter
|
||||
def pass(notification)
|
||||
end
|
||||
|
||||
def fail(notification)
|
||||
end
|
||||
|
||||
def pending(notification)
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue