API tests should output json results
authorjbedard@apple.com <jbedard@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 23 Aug 2018 22:50:52 +0000 (22:50 +0000)
committerjbedard@apple.com <jbedard@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 23 Aug 2018 22:50:52 +0000 (22:50 +0000)
commit9aa08e28b8e156b16bdeec524ae3ce9fe2d27a42
treef999095a1245c139dd8e0b06eaea7cf410c283db
parentad0c96a36612718b16db8deb5e7af154cba66114
API tests should output json results
https://bugs.webkit.org/show_bug.cgi?id=188869
<rdar://problem/43615652>

Reviewed by Aakash Jain.

JSON output for API tests is of the form:
    {
        "Failed": [{"name": <test name>, "output": <test log>}],
        "Timedout": [...],
        "Skipped": [...],
        "Crashed": [...]
    }
Tests which are successful are not displayed in the json output.

* Scripts/webkitpy/api_tests/manager.py:
(Manager.run): Print test results to provided file as a json dictionary.
* Scripts/webkitpy/api_tests/run_api_tests.py:
(run): Pass json option.
(parse_args): Add --json-output flag.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@235252 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Tools/ChangeLog
Tools/Scripts/webkitpy/api_tests/manager.py
Tools/Scripts/webkitpy/api_tests/run_api_tests.py