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
0
votes
1 answer

Mochawesome-reporter for Cypress with Typescript

I have a Cypress project which uses Typescript and I want to include a reporter. Problem is that the reporter always shows only the compiled Javascript code. I tried to google but the only thing I found was an unanswered question on stackoverflow. I…
Zokki
  • 125
  • 1
  • 8
0
votes
0 answers

Cypress does not show the execution time of failed tests

We are using Cypress with Github Actions and everything works as expected but I am not getting the time for the failed "it". I tried to use mocha-junit-reporter to see what I am getting back and the file looks like the following:
Or Nakash
  • 1,345
  • 1
  • 9
  • 22
0
votes
0 answers

How to mark the test fail in the Spec report if the webdriver.io falls catch block

I'm using webdriover.io and .js script to write script for performance testing. I want to mark the test case fail if the script falls into catch block. But the current implementation is showing the all test cases passed even if its falls into catch…
ArrchanaMohan
  • 2,314
  • 4
  • 36
  • 84
0
votes
0 answers

Getting ERROR @wdio/runner: Error: Some reporters are still unsynced: WdioMochawesomeReporter

This is the error I am seeing when try to integrate mochawesome report to Appium with wdio: ERROR @wdio/runner: Error: Some reporters are still unsynced: WdioMochawesomeReporter [0-0] at Timeout.
0
votes
1 answer

When I want to switch from A tab to B then it shows blank page using cypress

After login when I switch from Tab A to Tab B then it shows blank page, How i maintain session of Tab A. After performing activity on Tab A, I move to Tab B and start performing activity on Tab B
0
votes
1 answer

How to run cypress run and cypress open at a time with this user can see the cases are performed on web the same report are generated

How to run cypress run and cypress open at a time with this user can see the cases are performed on web the same report are generated I want to run npx cypress open and npx cypress run at a time so that is performed, and user view and same report…
0
votes
2 answers

How to select 2nd row of table and enter data in column if 2nd row is contains data, then it selects column of 3rd row using cypress devextreme table

Want to enter data: My Code: I want to select 2nd row of table and enter data in column because 1st row is disable and if 2nd row contains then it auto clicks on 3rd row. My code selects 1st row every time
0
votes
0 answers

Getting error with cypress Mochawesome html report while configuring in Jenkins pipeline

I'm using cypress mochawesome plugin to generate html report for my test cases. While running in local I'm able to get the report but when I'm configuring the same in jenkins pipeline an error is thrown. It might be due to any missing code or…
Coding_ninja
  • 121
  • 7
0
votes
2 answers

HTML page (Mochawesome Report) doesn't load on Google Cloud?

I'm running API tests using GitHub Actions and I want to upload to the report generated by Mochawesome to Google Cloud so I can see failures clearly without digging through CI logs. I have the upload part working but when I view the html file on…
George
  • 322
  • 1
  • 6
  • 25
0
votes
0 answers

Cypress always give exit code as 0 even if there are failed test cases

I am using mochawesome reporter for generating HTML report. My report is getting generated successfully. I have integrated it wih jenkins job and it is getting published there as well. But the problem is jenkins job always shows success even if…
0
votes
0 answers

Cypress mochawesome reporter Report - how to send report

We are currently running the cypress tests on production and reports are being generated at the cypress dashboard . but my team wants me to use mochawesome reports . I have mochawesome implemented without any problem. But I want to know how to share…
0
votes
0 answers

I am unable to create mocha report in cypress of all the test cases

I want to create a combined report for all the test cases that are in my project, for now when i run the command then it's creating report for the last script only.
0
votes
0 answers

Making the jenkins build failure if cypress TC failure

Currently , my cypress testes are runnning in docker container on one stage stage('Run E2E tests') { steps { withCredentials([ sshUserPrivateKey(credentialsId: '*********', keyFileVariable: 'SSH_KEY_FILE',…
Deepak
  • 11
  • 3
0
votes
1 answer

Combined JSON & Mochawesome test report not generating during Cypress tests in Docker container?

I am running Cypress tests inside a Docker container to generate a HTML test report. Here is my folder structure: As you can see in the cypress/reports/mocha folder, there are some JSON test results generated. All tests are passing & the 3 JSON…
user9847788
  • 2,135
  • 5
  • 31
  • 79
0
votes
1 answer

Generating empty HTML Mochawesome report from populated JSON file in Cypress

I am trying to generate one mochawesome report that contains all results of the spec files in my Cypress test suite. Here is my package.json: { "test": "npx cypress run", "combine-reports": "mochawesome-merge…
user9847788
  • 2,135
  • 5
  • 31
  • 79