Questions tagged [mochawesome]

Mochawesome is a NPM package used for Javascript Test reporting.

Mochawesome is a custom reporter for use with the Javascript testing framework, mocha. It runs on Node.js (>=4) and works in conjunction with mochawesome-report-generator to generate a standalone HTML/CSS report to helps visualize your test runs.

Mochawesome can be downloaded from :

https://www.npmjs.com/package/mochawesome

91 questions
5
votes
1 answer

How to view cy.log() output in mochawesome HTML report

I want to view the output of cy.log() command in mochawesome HTML report. Below is the code /// describe("Cypress File Upload", function() { it("File Upload test", () => { …
Amna
  • 103
  • 2
  • 7
5
votes
0 answers

Mochawesome includes javascript code instead of typescript

I've written a few api tests in Typescript with mocha + supertest. I run my tests with the 'ts' files only, the following way: "api:test": "cross-env TS_NODE_PROJECT='tsconfig.api.json' mocha -r ts-node/register 'test/api/**/*.ts' --reporter…
wfmn17
  • 134
  • 1
  • 3
  • 20
4
votes
4 answers

"Unexpected end of JSON input" while doing mochawesome-merge

I tried removing spaces in command as suggested in this post. I also tried to reencode mochawesome.json as suggested in this post. But non worked. You can find my json files here on gdrive. When I try to merge them, I get following error: npx…
MsA
  • 2,599
  • 3
  • 22
  • 47
3
votes
1 answer

How to embed screenshots into Cypress 10 Mochawesome report?

I am trying to implement Mochawsome report to my Cypress 10 framework. I use cypress-mochawesome-reporter plugin and set it up regarding npm package instructions https://www.npmjs.com/package/cypress-mochawesome-reporter. But the problem is that the…
vitaliy4us
  • 483
  • 5
  • 21
3
votes
1 answer

Cypress multi reporters: using mochawesome with autoset-status-cypress-testrail-reporter

I need to use two reporters with my Cypress tests: mochawesome to generate html reports, and autoset-status-cypress-testrail-reporter to publish test results to Testrail. The main tool I could find that would enable me to use multiple reporters is…
3
votes
0 answers

How to configure Multiple reporters in Cypress Docker container?

Cypress provides a manual for installing and configuring multiple reporters: https://docs.cypress.io/guides/tooling/reporters#Merging-reports-across-spec-files My goal is to make it work in a Docker container and provide the results to the host…
vitaliy4us
  • 483
  • 5
  • 21
3
votes
0 answers

Mocha reporters don't support parallel mode, does one exist?

We're using Mocha 8.0 and are running it with the parallel feature. Mochawesome reporter completely crashes in that mode. And the couple of very simple reporters like json or spec, well they don't do enough for us. We are looking for html output…
Dmitri R117
  • 2,502
  • 23
  • 20
3
votes
1 answer

Inject cypress-image-snapshot diff images to Mochawesome reports

I am using Cypress along with the Mochawesome reporter and the cypress-image-snapshot library. The cypress-image-snapshot library creates screenshots of visual regressions any time a test fails. I am trying to see if there is a way of injecting…
lukas
  • 574
  • 1
  • 4
  • 19
2
votes
0 answers

How to integrate cypress-mochawesome-reporter to Gitlab pages?

How to integrate cypress-mochawesome-reporter to Gitlab pages? Currently i have this code on my gitci-.yml stages: - test test: image: cypress/browsers:node18.12.0-chrome107 stage: test script: - npm ci - npm run start:ci & -…
Noel Dulin
  • 321
  • 1
  • 3
  • 12
2
votes
0 answers

"before all" hook in "{root}": Error: Timeout of 45000ms exceeded. For async tests and hooks, ensure "done()" is called;

I am using vscode-extension-tester and getting below error. Please find package.json and .mochrc.js file also. Extension 'helloworld-sample-0.0.1.vsix' was successfully installed. Loading mocha configuration from .mocharc.js "before all" hook in…
Ajinkya
  • 413
  • 2
  • 5
  • 18
2
votes
1 answer

Mochawesome with Cypress - how to get aggregated charts at higher level?

I've just started using mochawesome with Cypress (9.7). Our test structure is basically a number of spec files, each following something like the following format: describe('(A): description of this spec', () => { describe ('(B): description of…
Steve H
  • 280
  • 1
  • 2
  • 11
2
votes
0 answers

I want to send cypress test report after cypress run in the slack channel

I want to automatically send a cypress report after the cypress run is completed to the slack channel. I don't know what to do, but I think there is a way to do that. I have tried to integrate with cypress Dashboard but it will not send the…
Krupal Vaghasiya
  • 536
  • 7
  • 21
2
votes
2 answers

How to view cypress mochawesome reports in jenkins after running test step inside docker container?

I'm running my cypress tests on Jenkins inside a dockerized container and I generate cypress mocha awesome report, but I don't know how to display it inside Jenkins. This is my cypress.json content { "integrationFolder": "test/specs", …
Mona101ma
  • 675
  • 2
  • 7
  • 25
2
votes
0 answers

How to resolve mochawesome reports in webdriver.io framework getting error TypeError: ReporterClass is not a constructor

I have added the below dev dependencies for mochawesome reports in my webdriver.io framework. "wdio-dot-reporter": "0.0.10", "wdio-mochawesome-reporter": "^4.0.0" My wdio.conf file looks like below reporters: [ 'dot', [ …
2
votes
7 answers

Cypress BDD: Cypress Cucumber processor: Cannot Run Step Definition .js file

I am trying to build a cypress BDD framework. I've think I've created the feature and step definition file correctly. When I run the the test with npx cypress run --spec cypress/integration/examples/shoppingCart.feature --headed --browser chrome,…
fypnlp
  • 1,372
  • 4
  • 18
  • 41
1
2 3 4 5 6 7