---
title: TestingBot Cypress Reporting
description: Generate JUnit XML reports and JSON CI reports with Cypress Runner.
source_url:
  html: https://testingbot.com/support/web-automate/cypress/reporting
  md: https://testingbot.com/support/web-automate/cypress/reporting/index.md
---
# Reporting

The TestingBot Cypress CLI contains an option to generate reports from your Cypress Runs, similar to other reporters such as mocha-awesome.

To generate a report, please specify the `--reporter` flag:

 Argument | Shorthand Argument | Accepted Values || `--reporter` | `-r` | You can choose to use the `json` reporter, or the `junit` reporter |

## JUnit Reporter

The JUnit reporter is especially useful if you intend to run your Cypress tests in a CI such as Jenkins.

Here's an example of how to generate a JUnit report:

    testingbot-cypress run --reporter junit

Most CI systems will be able to parse the report.   
 The CI can then show a list of specs/tests that you ran on TestingBot, together with information such as:

- How long each spec took to run
- Whether the spec passed or not
- The full error message if a spec failed

By default, the reporter will output the report in a file called `test-results.xml`, in the same directory where you run the CLI command from.

You can choose to change the location of this file with:

    testingbot-cypress run --reporter junit --reporter-options mochaFile=/home/user/reports/my-report.xml

## JSON Reporter

The JSON reporter will output all data to a JSON file, similar to a report generated with [mochawesome-report-generator](https://github.com/adamgruber/mochawesome-report-generator)

Here's an example of how to generate a JSON report:

    testingbot-cypress run --reporter json

By default, the reporter will output the report in a file called `results.json`, in the same directory where you run the CLI command from.

You can choose to change the location of this file with:

    testingbot-cypress run --reporter json --reporter-options mochaFile=/home/user/reports/my-report.json

### Looking for more help?

Have questions or need more information? Reach out via email or Slack.

[Email us](https://testingbot.com/contact/new)[Slack Join our Slack](https://join.slack.com/t/testingb0t/shared_invite/zt-3bcw9xch-jk19~6XPs_xBrsAgAedkCw)
