From 38728069e2a280b15598ef43c163c0c8ae1a8c1d Mon Sep 17 00:00:00 2001 From: Andy Balaam Date: Fri, 13 Oct 2023 09:50:05 +0100 Subject: [PATCH] Always use cypress-multi-reporters XML report, not just in CI (#11731) --- .github/workflows/cypress.yaml | 1 - cypress.config.ts | 6 ++++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cypress.yaml b/.github/workflows/cypress.yaml index 1a6c85acf2..1990b542c5 100644 --- a/.github/workflows/cypress.yaml +++ b/.github/workflows/cypress.yaml @@ -174,7 +174,6 @@ jobs: record: true parallel: true command: "yarn percy exec --parallel -- npx cypress-cloud run" - config: '{"reporter":"cypress-multi-reporters", "reporterOptions": { "configFile": "cypress-ci-reporter-config.json" } }' ci-build-id: ${{ needs.prepare.outputs.uuid }} env: # pass the Dashboard record key as an environment variable diff --git a/cypress.config.ts b/cypress.config.ts index 2851dd7be7..5351e6d686 100644 --- a/cypress.config.ts +++ b/cypress.config.ts @@ -45,4 +45,10 @@ export default defineConfig({ // disable logging of HTTP requests made to the Cypress server. They are noisy and not very helpful. // @ts-ignore https://github.com/cypress-io/cypress/issues/26284 morgan: false, + + // Create XML result files + reporter: "cypress-multi-reporters", + reporterOptions: { + configFile: "cypress-ci-reporter-config.json", + }, });