Sha256: b8bc0aaddf072cfb0b34d17619ba2d0844510bf2faee042d95f45744469b75b1
Contents?: true
Size: 804 Bytes
Versions: 2
Compression:
Stored size: 804 Bytes
Contents
module Omnitest module Reporters autoload :MarkdownReporter, 'omnitest/reporters/markdown_reporter' # autoload :HTMLReporter, 'omnitest/reporters/html_reporter' autoload :JSONReporter, 'omnitest/reporters/json_reporter' autoload :YAMLReporter, 'omnitest/reporters/yaml_reporter' RESOURCES_DIR = File.expand_path '../../../resources/', __FILE__ GENERATORS_DIR = File.expand_path 'generators/', RESOURCES_DIR ASSETS_DIR = File.expand_path 'assets/', RESOURCES_DIR def self.reporter(format, shell) case format when 'text' shell when 'markdown' MarkdownReporter.new when 'json' JSONReporter.new when 'yaml' YAMLReporter.new else fail "Unknown report format #{format}" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
omnitest-0.2.2 | lib/omnitest/reporters.rb |
omnitest-0.2.1 | lib/omnitest/reporters.rb |