Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description:
This PR introduces improvements to the Cypress test setup and workflow, focusing on report generation and Slack integration for test notifications. The following changes have been implemented:
Key Changes:
1. Workflow File (
.github/workflows/cypress-tests.yml
):mkdir mochareports
is no longer necessary since the directory will be created dynamically by the report generator.cy:notify
script to use a Node.js-based notification mechanism for more flexibility.2. Cypress Configuration (
Dfe.Academies.External.Web/CypressTests/cypress.config.ts
):mochawesomeReporterOptions
to define custom report directory paths and enable integration with Slack messaging.quiet
parameter added explicitly)."3. Package File (
Dfe.Academies.External.Web/CypressTests/package.json
):generate:html:report
, to merge JSON test results and generate an HTML report usingmochawesome-merge
andmochawesome-report-generator
.cy:notify
to utilise a Node.js-based Slack notification script (sendSlackNotification.js
).cypress-multi-reporters
for improved reporting and integration with multiple tools.Impact: