Skip to content

Commit f83034b

Browse files
committed
feat: Add cypress e2e html reporting
1 parent 81dff88 commit f83034b

4 files changed

Lines changed: 385 additions & 1 deletion

File tree

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,6 @@ logs
3737
# Cypress screenshots and videos
3838
cypress/screenshots
3939
cypress/videos
40-
.vite-dev-cache
40+
.vite-dev-cache
41+
42+
cypress/results

cypress.config.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,11 @@ export default defineConfig({
77
API_URL: 'http://localhost:3001', // backend API
88
},
99
},
10+
reporter: 'mochawesome',
11+
reporterOptions: {
12+
reportDir: 'cypress/results',
13+
overwrite: false,
14+
html: true,
15+
json: true,
16+
},
1017
});

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,17 @@
6464
"@vueuse/nuxt": "^13.9.0",
6565
"cookie": "^1.0.2",
6666
"cypress": "^15.5.0",
67+
"cypress-multi-reporters": "^2.0.5",
6768
"eslint": "^9.37.0",
6869
"eslint-plugin-regex": "^1.10.0",
6970
"happy-dom": "^19.0.2",
7071
"husky": "^9.1.7",
7172
"jsonwebtoken": "^9.0.2",
7273
"lint-staged": "^16.2.3",
74+
"mocha-junit-reporter": "^2.2.1",
75+
"mochawesome": "^7.1.4",
76+
"mochawesome-merge": "^5.0.0",
77+
"mochawesome-report-generator": "^6.3.2",
7378
"msw": "^2.11.5",
7479
"nock": "^14.0.10",
7580
"playwright-core": "^1.55.1",

0 commit comments

Comments
 (0)