Sha256: d8c0ab1157b06cd84f8087014bad9821d11d11468c7f913b7141e378d5d4706f
Contents?: true
Size: 596 Bytes
Versions: 39
Compression:
Stored size: 596 Bytes
Contents
# frozen_string_literal: true require 'json' module GitlabQuality module TestTooling module TestResults 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| GitlabQuality::TestTooling::TestResult::JsonTestResult.new(test) end end end end end end
Version data entries
39 entries across 39 versions & 1 rubygems