1Writing a json result file
2--------------------------------------------------------
3
4.. versionadded: 1.6
5
6You can instruct tox to write a json-report file via:
7
8.. code-block:: shell
9
10
11    tox --result-json=PATH
12
13This will create a json-formatted result file using this schema:
14
15.. code-block:: json
16
17    {
18      "testenvs": {
19        "py27": {
20          "python": {
21            "executable": "/home/hpk/p/tox/.tox/py27/bin/python",
22            "version": "2.7.3 (default, Aug  1 2012, 05:14:39) \n[GCC 4.6.3]",
23            "version_info": [ 2, 7, 3, "final", 0 ]
24          },
25          "test": [
26            {
27              "output": "...",
28              "command": [
29                "/home/hpk/p/tox/.tox/py27/bin/pytest",
30                "--instafail",
31                "--junitxml=/home/hpk/p/tox/.tox/py27/log/junit-py27.xml",
32                "tests/test_config.py"
33              ],
34              "retcode": "0"
35            }
36          ],
37          "setup": []
38        }
39      },
40      "platform": "linux2",
41      "installpkg": {
42        "basename": "tox-1.6.0.dev1.zip",
43        "sha256": "b6982dde5789a167c4c35af0d34ef72176d0575955f5331ad04aee9f23af4326",
44        "md5": "27ead99fd7fa39ee7614cede6bf175a6"
45      },
46      "toxversion": "1.6.0.dev1",
47      "reportversion": "1"
48    }
49