Cypress x Mochawesome - Nice looking reports | Blog Project V-13

  Рет қаралды 1,232

TommiCodes

TommiCodes

Күн бұрын

Пікірлер: 9
@celoaga05
@celoaga05 4 жыл бұрын
Hi Thomas, very brief and informative video, thanks. Is there any way to add screenshots to the failed scenarios. there are some workarounds but none of them works properly. Additionally, How can we add date stamp to the report generated? Thanks in advance :)
@TommiCodes
@TommiCodes 4 жыл бұрын
Have a look at here: docs.cypress.io/guides/references/configuration.html#Options You can specify this in your cypress.json. In the link above is a section about screenshots and also where they are stored
@quangvo4868
@quangvo4868 4 жыл бұрын
Thank you very much for sharing code on how to create a beautiful Mochawesome report. I followed your video and was able to get a report. It is much appreciated. Is there anyway to pass options to cypress.run() to limit the spec to a few tests, instead of running all tests? This is the line of code: const {totalFailed} = await cypress.run(); Thank you.
@TommiCodes
@TommiCodes 4 жыл бұрын
Should be possible i think. Something like this should work: `cypress.run({ spec: './cypress/integration/examples/actions.spec.js' })` Of course replace the path with the path from your spec file, that you want to run. Please give some feedback if it works. Otherwise i can check my code out and look for a solution.
@quangvo4868
@quangvo4868 4 жыл бұрын
@@TommiCodes Hi Thomas. I pass the arguments like this and it works nicely. const {totalFailed} = await cypress.run({ spec: 'cypress/integration/Error_combineLogFiles.js,cypress/integration/Error_getErrorCountsAndWriteToExcel.js', config: 'video=false' }); It is very kind of you to reply. Thank you!
@TommiCodes
@TommiCodes 4 жыл бұрын
@@quangvo4868 Great to hear!
@kailashpathak8906
@kailashpathak8906 4 жыл бұрын
when tests pass, NPM exits without an error message when tests fail you see npm ERR! code ELIFECYCLE npm ERR! Exit status 3 Can anyone help
@TommiCodes
@TommiCodes 4 жыл бұрын
Hi, can you copy + paste complete error message?
Cypress Mochawesome Reporting with Cypress 12 is awesome ⚡️📊
11:06
Execute Automation
Рет қаралды 11 М.
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН
Blog/News App | v0.1.0 | NestJS & Angular & Docker
53:30
TommiCodes
Рет қаралды 3,4 М.
Coding a Web Server in 25 Lines - Computerphile
17:49
Computerphile
Рет қаралды 360 М.
The Biggest React Framework You've Never Heard of
20:29
Theo - t3․gg
Рет қаралды 47 М.
Always Check for the Hidden API when Web Scraping
11:50
John Watson Rooney
Рет қаралды 660 М.
CYPRESS Page Object Model EXAMPLE | POM in CYPRESS
21:09
JoanMedia
Рет қаралды 22 М.
Junior vs Senior React Folder Structure - How To Organize React Projects
16:16
How to Build Effective AI Agents (without the hype)
24:27
Dave Ebbelaar
Рет қаралды 94 М.