Skip to content

JSON output file populates all tests with same test_report content #16

@jeffwright13

Description

@jeffwright13

Specifically, each test inside the test_reports dict have the same timer and reports content

ex:

{
    "session_started": true,
    "session_finished": true,
    "session_duration": 0.31512928009033203,
    "num_tests_to_run": 2,
    "num_tests_have_run": 2,
    "timer": {
        "elapsed": 0.31512928009033203,
        "running": false,
        "finished": true
    },
    "lastline": "1 failed, 1 passed, 94 deselected, 16 warnings in 0.38s",
    "lastline_ansi": "\u001b[31m\u001b[1m1 failed\u001b[0m, \u001b[32m1 passed\u001b[0m, \u001b[33m94 deselected\u001b[0m, \u001b[33m16 warnings\u001b[0m\u001b[31m in 0.38s\u001b[0m\u001b[31m",
    "tally_tests": {
        "demo-tests/test_0.py::test_tally_pass": {
            "node_id": "demo-tests/test_0.py::test_tally_pass",
            "test_duration": 0.05213284492492676,
            "test_outcome": "Passed",
            "timer": {
                "elapsed": 0.08397436141967773,
                "running": false,
                "finished": true
            },
            "reports": {
                "setup": {
                    "node_id": "demo-tests/test_0.py::test_tally_fail",
                    "when": "setup",
                    "outcome": "passed"
                },
                "call": {
                    "node_id": "demo-tests/test_0.py::test_tally_fail",
                    "when": "call",
                    "outcome": "failed"
                },
                "teardown": {
                    "node_id": "demo-tests/test_0.py::test_tally_fail",
                    "when": "teardown",
                    "outcome": "passed"
                }
            }
        },
        "demo-tests/test_0.py::test_tally_fail": {
            "node_id": "demo-tests/test_0.py::test_tally_fail",
            "test_duration": 0.08397436141967773,
            "test_outcome": "Failed",
            "timer": {
                "elapsed": 0.08397436141967773,
                "running": false,
                "finished": true
            },
            "reports": {
                "setup": {
                    "node_id": "demo-tests/test_0.py::test_tally_fail",
                    "when": "setup",
                    "outcome": "passed"
                },
                "call": {
                    "node_id": "demo-tests/test_0.py::test_tally_fail",
                    "when": "call",
                    "outcome": "failed"
                },
                "teardown": {
                    "node_id": "demo-tests/test_0.py::test_tally_fail",
                    "when": "teardown",
                    "outcome": "passed"
                }
            }
        }
    }
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions