Generating a JSON reportยค
To generate a JSON report, you can use the --collect-report
option with a filename. This will output a JSON file with the session result.
Option | Description |
---|---|
--collect-report |
Output a JSON report file with the session result. |
pytest --collect-report=report.json
The report will be written on session exit, after all tests have been collected and run.