Sha256: b3f8641008c554c40bc249d602bd20493e43be3dfec18839518274f72f5d7d89

Contents?: true

Size: 1.48 KB

Versions: 14

Compression:

Stored size: 1.48 KB

Contents

# Copyright (C) 2012-2024  Sutou Kouhei <kou@clear-code.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

require "grntest/reporters/benchmark-json-reporter"
require "grntest/reporters/buffered-mark-reporter"
require "grntest/reporters/inplace-reporter"
require "grntest/reporters/mark-reporter"
require "grntest/reporters/progress-reporter"
require "grntest/reporters/stream-reporter"

module Grntest
  module Reporters
    class << self
      def create_reporter(tester)
        case tester.reporter
        when :"benchmark-json"
          BenchmarkJSONReporter.new(tester)
        when :"buffered-mark"
          BufferedMarkReporter.new(tester)
        when :inplace
          InplaceReporter.new(tester)
        when :mark
          MarkReporter.new(tester)
        when :progress
          ProgressReporter.new(tester)
        when :stream
          StreamReporter.new(tester)
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
grntest-1.8.0 lib/grntest/reporters.rb
grntest-1.7.9 lib/grntest/reporters.rb
grntest-1.7.8 lib/grntest/reporters.rb
grntest-1.7.7 lib/grntest/reporters.rb
grntest-1.7.6 lib/grntest/reporters.rb
grntest-1.7.5 lib/grntest/reporters.rb
grntest-1.7.4 lib/grntest/reporters.rb
grntest-1.7.3 lib/grntest/reporters.rb
grntest-1.7.2 lib/grntest/reporters.rb
grntest-1.7.1 lib/grntest/reporters.rb
grntest-1.7.0 lib/grntest/reporters.rb
grntest-1.6.9 lib/grntest/reporters.rb
grntest-1.6.8 lib/grntest/reporters.rb
grntest-1.6.7 lib/grntest/reporters.rb