class Gitlab::QA::Report::JsonTestResults

def parse

def parse
  JSON.parse(File.read(path))
end

def process

def process
  results['examples'].map do |test|
    TestResult.from_json(test)
  end
end

def write

def write
  json = results.merge('examples' => testcases.map(&:report))
  File.write(path, JSON.pretty_generate(json))
end