Sha256: ce5f8a902047b6303dd7cd930a4fca7f728a9647ac949022055e8a30dd95193c

Contents?: true

Size: 218 Bytes

Versions: 2

Compression:

Stored size: 218 Bytes

Contents

require 'json'
require 'omnitest/reporters/hash_reporter'

module Omnitest
  module Reporters
    class JSONReporter < HashReporter
      def convert(data)
        JSON.pretty_generate data
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
omnitest-0.2.2 lib/omnitest/reporters/json_reporter.rb
omnitest-0.2.1 lib/omnitest/reporters/json_reporter.rb