Report Generation

Cotton can generate test reports in JSON format by specifying the output file with the --json-report flag. See CLI for details.

JSON Report

JSON reports contain test results, timing information, and a summary. Use the --json-report flag to generate a report:

cotton ./specs --json-report results.json

The report will be saved to the specified file in JSON format.