Skip to end of metadata
Go to start of metadata

When your tests are finished, expose your tests results as a global variable: window.global_test_results. It must conform to this format.

You can also clone this file directly from our GitHub repo

window.global_test_results = {
  "passed": 1,
  "failed": 3,
  "total": 4,
  "duration": 4321,
  "tests": [
    {
      "name": "foo test",
      "result": false,
      "message": "sumthin bad",
      "duration": 4000
    },
    {
      "name": "bar test",
      "result": false,
      "message": "failure",
      "duration": 300
    },
    {
      "name": "baz test",
      "result": true,
      "message": "passed",
      "duration": 20
    },
    {
      "name": "qux test",
      "result": false,
      "message": "test bad",
      "duration": 1
    }
  ]
}

 

  • No labels