jquery/testswarm — pull request #214 by jayarjo (2012-07-11 08:55:28+00:00)
Title: Provide exportable test results in JSON format

I came up with a more generic format for results, that is both easy to parse and clean. This is how it looks:

{ suite: 'Sute Name',
failed: 1,
passed: 58,
total: 59,
duration: 57,
modules:
[ { name: 'Module Name',
tests: [{
name: 'Test Name',
duration: 37,
failed: 1,
passed: 58,
total: 59,
assertions: [{
actual: 6,
expected: 7,
message: 'Looping over an array',
result: 0,
source: '([object Object])@http://.../tests/Utils.html:109'
},
...
]
},
...
],
duration: 37,
failed: 1,
passed: 58,
total: 59
} ]
}

And it includes all results, both successful assertions and failures.