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

Dashboard to display test automation results from different tools

I have got to create one common dashboard that can be used to display the execution results along with execution status and pass percentage from various test automation tools like api - mochasome reports, seleium- extent reports, selenium -…
0
votes
0 answers

Getting Error: Cannot find module 'cypress-mochawesome-reporter/plugin' when i run cypress in docker

I have never used docker before. When I run it in my local it will be working fine but when I run using docker getting an error. I have created a docker file that contains the below line of code. FROM cypress/base:14.19.0 RUN mkdir…
Krupal Vaghasiya
  • 536
  • 7
  • 21
0
votes
1 answer

I am trying to generate Mochawesome Report with webdriver.io framework json files are not created

I have added below dependencies in my project "mochawesome-report-generator": "^6.0.1", "wdio-mochawesome-reporter": "^4.0.0", "@wdio/dot-reporter": "^7.16.14" And added in wdio.conf file the below configuration reporters: [ 'dot',…
0
votes
2 answers

Is there a way to integrate Cypress reporter with "report portal" and "mochawesome"

I am trying to integrate cypress resporting with report portal and mochawaesome. The goal is to get both reports. I have tried this in the cypress.json "reporter": "cypress-multi-reporters", "reporterOptions": { "reporterEnabled":…
0
votes
0 answers

How can I get full HTML mochawesome report using codeceptjs running test in parallel mode?

I am using codeceptjs library in order to develop and run automated tests. Currently I'm in process of run those tests in paralell using NodeJS` workers. CodeceptJS proposes this opportunity and mention it in its documentation -…
Snow
  • 31
  • 1
  • 4
0
votes
1 answer

Send Cypress Mocha test reports to Cypress dashboard

We run our Cypress tests locally (in Jenkins) and create Mocha test reports (JSON). Now we would like to send these reports to Cypress dashboard so they are more easily accessible. We have looked in to ReportPortal, where you can include the…
madu
  • 5,232
  • 14
  • 56
  • 96
0
votes
1 answer

What tool can I use to take a screenshot with cypress automation?

I have a cypress spec.js and I would like to take several screenshots after particular assertion of the whole page several times. I want the screenshot to be available on a folder or in the report. I have mochawesome and Junit reporter. What is the…
0
votes
0 answers

Cypress mochawesome report

When all spec.js files passes raport is generated and everything is okey. When just one or more of tests fails there is something weird going on. There is many warnings and errors but still report is generated. Also report seems to be generated…
dawidk09
  • 91
  • 10
0
votes
1 answer

Mochaweasome contained only description for passed test cases

I'm using mochawesome report to capture my cypress execution. The test case shows simply pass and didn't find the steps that it gone through and assertion that is added as part of that test in the report. Sample snapshot (Sorry for too many…
ArrchanaMohan
  • 2,314
  • 4
  • 36
  • 84
0
votes
1 answer

Unable to merge mochaweasome reports

I have the below config in my test runner and trying to merge all the mochaweasome.html file as single mocha file. Runner.js async function testRunner(fixture) { return cypress.run({ config: { "reporter": "mochawesome", …
0
votes
0 answers

Cypress HTML log is terrible at indicating cy.get() DOM element names, is there any solution/workaround?

If I have the cypress code: cy.get('[testid="cancel-button"]').should('not.exist') cy.get('[testid="reset-button"]').should('not.exist') cy.get('[testid="other-button"]').should('not.exist') of course in cypress open I can see the cy.get(XXX)…
0
votes
0 answers

How to attach mochawesome report as email attachment via Jenkins

How to attach mochawesome report [Cypress] as email attachment via Jenkins Pipeline script
wajid
  • 1
0
votes
3 answers

Cypress mochawesome Reporting :Getting error as 'command not found: marge', while executing the command to generate HTML report

`1. I have configured mochawesome depandencies and now my package.json has following "mocha": "^8.3.0", "mochawesome": "^6.2.1", "mochawesome-merge": "^4.2.0", "mochawesome-report-generator": "^5.2.0" After test execution , i could able to merge…
Smith Ranjan
  • 97
  • 2
  • 6
0
votes
0 answers

Failed screenshot in Mochawesome Report in case of Test Retry

I am using addContext() that mocha provides to append failure screenshots in the Mochawesome html report. I have written this under support/index.js Cypress.on('test:after:run', (test, runnable) => { if (test.state === 'failed') { const…
Alapan Das
  • 17,144
  • 3
  • 29
  • 52
0
votes
1 answer

Remove Pending tests from mochawesome report

I am using cypress-select-tests module to filter cypress tests. The issue is unselected tests are marked as pending in mochawesome report which doesn't look good. How can I remove the pending tests from the Report?
Novice Coder
  • 105
  • 1
  • 6