summaryrefslogtreecommitdiff
path: root/docs/example/result.rst
blob: 575cbedf38081a53df672b7dc1e267b370079b00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
Writing a JSON result file
--------------------------------------------------------

.. versionadded: 1.6

You can instruct tox to write a json-report file via:

.. code-block:: shell


    tox --result-json=PATH

This will create a json-formatted result file using this schema:

.. code-block:: json

    {
      "testenvs": {
        "py27": {
          "python": {
            "executable": "/home/hpk/p/tox/.tox/py27/bin/python",
            "version": "2.7.3 (default, Aug  1 2012, 05:14:39) \n[GCC 4.6.3]",
            "version_info": [ 2, 7, 3, "final", 0 ]
          },
          "test": [
            {
              "output": "...",
              "command": [
                "/home/hpk/p/tox/.tox/py27/bin/pytest",
                "--instafail",
                "--junitxml=/home/hpk/p/tox/.tox/py27/log/junit-py27.xml",
                "tests/test_config.py"
              ],
              "retcode": "0"
            }
          ],
          "setup": []
        }
      },
      "platform": "linux2",
      "installpkg": {
        "basename": "tox-1.6.0.dev1.zip",
        "sha256": "b6982dde5789a167c4c35af0d34ef72176d0575955f5331ad04aee9f23af4326"
      },
      "toxversion": "1.6.0.dev1",
      "reportversion": "1"
    }