Mercurial > hg
comparison tests/test-run-tests.t @ 22486:f166e08ece3b
run-tests: added 'cuser', 'csys' time info in report.json file
This patch adds up a 'cuser' and 'csys'(cputime) info in report.json file
which generated when --json is enabled while testing.
Now the new format of report.json file is as below.
testreport ={
"test-success.t": {
"csys": "1.041",
"cuser": "1.041",
"result": "success",
"time": "2.041"
}
"test-failure.t": {
"csys": "1.041",
"cuser": "1.041",
"result": "failure",
"time": "4.430"
}
"test-skip.t": {
"csys": "1.041",
"cuser": "1.041",
"result": "skip",
"time": "3.754"
}
}
author | anuraggoel <anurag.dsps@gmail.com> |
---|---|
date | Fri, 19 Sep 2014 07:23:10 +0530 |
parents | c42e69268f5b |
children | 36a940d82f88 |
comparison
equal
deleted
inserted
replaced
22485:efedda4aed49 | 22486:f166e08ece3b |
---|---|
392 [1] | 392 [1] |
393 | 393 |
394 $ cat report.json | 394 $ cat report.json |
395 testreport ={ | 395 testreport ={ |
396 "test-failure.t": [\{] (re) | 396 "test-failure.t": [\{] (re) |
397 "csys": "\s*[\d\.]{5}", (re) | |
398 "cuser": "\s*[\d\.]{5}", (re) | |
397 "result": "failure", | 399 "result": "failure", |
398 "time": "\s*[\d\.]{5}" (re) | 400 "time": "\s*[\d\.]{5}" (re) |
399 }, | 401 }, |
400 "test-skip.t": { | 402 "test-skip.t": { |
403 "csys": "\s*[\d\.]{5}", (re) | |
404 "cuser": "\s*[\d\.]{5}", (re) | |
401 "result": "skip", | 405 "result": "skip", |
402 "time": "\s*[\d\.]{5}" (re) | 406 "time": "\s*[\d\.]{5}" (re) |
403 }, | 407 }, |
404 "test-success.t": [\{] (re) | 408 "test-success.t": [\{] (re) |
409 "csys": "\s*[\d\.]{5}", (re) | |
410 "cuser": "\s*[\d\.]{5}", (re) | |
405 "result": "success", | 411 "result": "success", |
406 "time": "\s*[\d\.]{5}" (re) | 412 "time": "\s*[\d\.]{5}" (re) |
407 } | 413 } |
408 } (no-eol) | 414 } (no-eol) |