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

Is there any way to save a full XHR payload in a cypress run?

We have our cypress suite working fine locally in every machine, environment, location. We've configured it to work with a Bitbucket pipeline but there is a specific step that consistently fails because of the API call it makes. This API call is…
Matias Diez
  • 1,237
  • 2
  • 17
  • 26
0
votes
0 answers

consoleReporter won't accept mocha-teamcity-reporter as a parameter

I am trying to run mocha tests with mochawesome reporter to produce HTML report, while having a console output with mocha-teamcity-reporter. When I specify the following parameters: --reporter node_modules\mochawesome --reporter-options…
0
votes
2 answers

Mochawesome report is not opening in browser?

I'm doing unit testing using mocha chai. I want to see the reports in browser. Using mochawesome-report I'm able to generate test cases report in a folder mochawesome-report. In that I could see mochawesome.json and mochawesome.html. But unable to…
Priyanka
  • 117
  • 1
  • 5
  • 19
0
votes
1 answer

Invalid value null error for mochawesome-report-generator

I am trying to use mochawesome-report-generator to generate a standalone report, and here's my script to run it: "generate-test-report":"marge ./mochawesome-report/mochawesome.json -i -f testReport" The trouble is, I keep getting this error, trying…
Yige Song
  • 333
  • 6
  • 16
0
votes
1 answer

Combining Multiple Describes in Test Reporter

I'm using Cypress.IO (which supports Mocha Reporters, hence the inclusion of Mocha Tags). Let's say I have multiple tests in multiple files: test1.js: describe('A', () => { describe('B', () => { it('Test1', () => { ... }) …
R. Barzell
  • 666
  • 5
  • 24
0
votes
0 answers

Cypress custom commands + Mochawesome reports: Log more details

Goal: Add more details from Cypress custom commands to generated Mochawesome report I am new with Cypress.io and especially with Mochawesome report generation. In creating cleaner code and avoid duplicity, I have added custom Cypress.Commands, for…
Jeff
  • 1,917
  • 1
  • 25
  • 43
0
votes
1 answer

How to use mochawesome and mocha-sonarqube-report in a single command?

I have the following script in my package.json file to check the code coverage of the UT: "coverage": "nyc --reporter=lcov --reporter=cobertura mocha ./test/apis_new/* --reporter mocha-sonarqube-reporter --reporter-options output=xunit.xml mocha…
Shrabanee
  • 2,706
  • 1
  • 18
  • 30
0
votes
1 answer

Dialogflow with Botium-cli using mochawesome : undefined Buttons

Button is working in bot replies but in mochawesome #bot reply is undefined sample convo #bot BUTTON Pin Mailer #me Pin Mailer #bot BUTTONS Pick up|Back to menu #me Pick up but in mochawesome bot response undefined I’m using botium-cli run…
Xerxes
  • 13
  • 3
0
votes
1 answer

Mochawesome reporter outputs incorrect json results while using Mocha's this.retries() api

Though I see an open issue about this , Wanted to check if we have a workaround, any suggestions appreciated ? : only while using this.retries(), I see the json results showing null for the elements state and speed the elements pass , fail as…
Alferd Nobel
  • 3,185
  • 2
  • 30
  • 35
0
votes
1 answer

Mochawesome Report Visualize. (CodeceptJS and Puppeteer was used) I was able to create a report, but unable to view it properly

The report has these data. but not able to visualize These are the generated report and JSON data.
Arun Prasad E S
  • 9,489
  • 8
  • 74
  • 87
0
votes
1 answer

How to generate html or pdf report of executed test cases in cypress using mochawesome

I am able generate single test case report but i want to generate single report of all test case. I generate report using mochawesome library. We want to merge all report into single or full report of test cases. cypress.json file code are: { …
0
votes
1 answer

How to compare WebdriverIO reports and generate the difference?

We are using WebdriverIO for our automated tests and we generate HTML reports with Mochawesome in the end based on the result JSON files. Now we have a lot of implemented tests and we want to fetch the difference between two testruns as fast as…
GRme
  • 2,707
  • 5
  • 26
  • 49
0
votes
3 answers

Problem with mochawesome: TypeError: Cannot set property 'testsRegistered' of undefined

After running autotest instead of getting mochawesome report I get "Problem with mochawesome: TypeError: Cannot set property 'testsRegistered' of undefined" I've tried to update to "mochawesome": "^4.1.0" and reinstall package but these didn't help
B.Misha
  • 107
  • 9
0
votes
1 answer

Can't view test output in file and console output together using mocha and mochawesome

I'm using latest node, mocha to run UI tests and mochaawesome for reporting. I would like to get output of mocha test command in console output and text file both. Test works fine but user can't see console output promptly if output is redirected…
Jitesh Sojitra
  • 3,655
  • 7
  • 27
  • 46
-1
votes
1 answer

Cypress Mochaawsome Report - HTML Report only showing results of 2nd js file, although I have executed 2 js files successfully

I have configured Mochaawsome report in cypress. There are 2 .js files in my project. each file have 2 testcases. I am running both .js file through command on command terminal. Below is the command that i am using: cypress run --reporter…