Set up placeholder formatters

This commit is contained in:
Michael Miller 2021-05-12 21:41:12 -06:00
parent ff084bb3cd
commit 83c4b01e84
No known key found for this signature in database
GPG key ID: F9A0C5C65B162436
5 changed files with 60 additions and 2 deletions

View file

@ -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

View 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

View 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

View 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

View 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