Skip to content

Commit

Permalink
Merge pull request #760 from DFE-Digital/cypress-slack-notifications-…
Browse files Browse the repository at this point in the history
…with-other-changes

Fixed Slack notification issues, added contributors, and deleted comm…
  • Loading branch information
FahadDarw authored Dec 13, 2024
2 parents ac77a2e + b6d6bf1 commit a9ffd28
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Dfe.Academies.External.Web/CypressTests/cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default defineConfig({
reporterEnabled: 'mochawesome',
mochawesomeReporterOptions: {
reportDir: 'cypress/reports/mocha', // added this for slack messaging plugin
quiet: true, // Fixed typo
quiet: true,
overwrite: false,
html: false,
json: true,
Expand Down
16 changes: 12 additions & 4 deletions Dfe.Academies.External.Web/CypressTests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,14 @@
"main": "index.js",
"scripts": {
"cy:open": "cypress open --browser electron",
"cy:run": "cypress run --browser electron" ,
"cy:run": "cypress run --browser electron",
"cy:notify": "cypress-slack-reporter",
"lint": "eslint ."
"clean:reports": "rm -rf cypress/reports/mocha/*.json",
"combine:reports": "mochawesome-merge cypress/reports/mocha/*.json> mochareports/report.json",
"create:html:report": "marge mochareports/report.json -f report -o mochareports",
"generate:html:report": "npm run combine:reports && npm run create:html:report",
"lint": "eslint .",
"generate:html:report": "mochawesome-merge ./cypress/reports/*.json > mochareports/report.json && mochawesome-report-generator mochareports/report.json"
},
"keywords": [
"regression",
Expand All @@ -20,7 +25,9 @@
},
"contributors": [
"Dan Good",
"Chris Sherlock"
"Chris Sherlock",
"Fahad Darwish",
"Richika Dogra"
],
"license": "ISC",
"bugs": {
Expand All @@ -43,6 +50,7 @@
"cypress-axe": "^1.4.0",
"eslint": "^9.6.0",
"eslint-plugin-cypress": "^3.0.0",
"zaproxy": "^2.0.0-rc.1"
"zaproxy": "^2.0.0-rc.1",
"cypress-multi-reporters": "^1.6.1"
}
}

0 comments on commit a9ffd28

Please sign in to comment.