Skip to content

← All questions

Reading summary.json in a shell script — which keys are stable?

Asked 10,400 views2 answers

I want the CI job to post totals to Slack without scraping console output. .sdods/runs/<id>/summary.json looks like exactly what I need:

json
{
  "runId": "0180c7d4-9a11-7f02-b3c8-6d10a5e2f477",
  "status": "failed",
  "totals": {
    "total": 20,
    "passed": 18,
    "failed": 1,
    "skipped": 0,
    "timedOut": 0,
    "flaky": 0,
    "healed": 1,
    "durationMs": 9825,
    "workers": 4
  },
  "byProject": { "demo-shop--ui--chromium": { "total": 20, "passed": 18 } }
}

Before I build on it: is this file part of the contract or an implementation detail that is going to move under me? And what is byProject keyed on — I want to split the message per browser.

asked by Gio Castellano521 ·

2 answers

Have the same question?

Ask it with the command you ran and the output you got, and it will be answered here.

Ask a question

Related