Mercurial > public > mercurial-scm > hg-stable
diff 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 |
line wrap: on
line diff
--- a/tests/test-run-tests.t Fri Sep 19 14:51:58 2014 -0500 +++ b/tests/test-run-tests.t Fri Sep 19 07:23:10 2014 +0530 @@ -394,14 +394,20 @@ $ cat report.json testreport ={ "test-failure.t": [\{] (re) + "csys": "\s*[\d\.]{5}", (re) + "cuser": "\s*[\d\.]{5}", (re) "result": "failure", "time": "\s*[\d\.]{5}" (re) }, "test-skip.t": { + "csys": "\s*[\d\.]{5}", (re) + "cuser": "\s*[\d\.]{5}", (re) "result": "skip", "time": "\s*[\d\.]{5}" (re) }, "test-success.t": [\{] (re) + "csys": "\s*[\d\.]{5}", (re) + "cuser": "\s*[\d\.]{5}", (re) "result": "success", "time": "\s*[\d\.]{5}" (re) }