Sha256: 82b07c15734aca11e8887514ae7c56a6aaae8465d1bf886495a4a71105b42771
Contents?: true
Size: 537 Bytes
Versions: 147
Compression:
Stored size: 537 Bytes
Contents
# frozen_string_literal: true require 'json' module Gitlab module QA module Report class JsonTestResults < BaseTestResults def write json = results.merge('examples' => testcases.map(&:report)) File.write(path, JSON.pretty_generate(json)) end private def parse 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
147 entries across 147 versions & 1 rubygems