Sha256: 0261ecc4eba596e0831eb4137adc392bfe332deade25c4195623acd9905976ba
Contents?: true
Size: 549 Bytes
Versions: 5
Compression:
Stored size: 549 Bytes
Contents
# frozen_string_literal: true require 'json' module Gitlab module QA module Report class JsonTestResults < BaseTestResults def write(path) json = results.merge('examples' => testcases.map(&:report)) File.write(path, JSON.pretty_generate(json)) end private def parse(path) JSON.parse(File.read(path)) end def process results['examples'].map do |test| TestResult.from_json(test) end end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems