Category : mochawesome

I have an issue in refreshing the html and json files from Mochawesome The setup is with Selenium/NodeJs Any idea will be welcome! packaje.json file: explanation line ("test": "mocha tests.js –reporter mochawesome && concurrently "http-server -a localhost -p 3000" "opener http://localhost:3000/mochawesome-report/mochawesome.html"") – start the tests with mocha, passing the tests to the mochawesome reporter, starting ..

Read more

I have multiple spec files in integration folder. All these files, I am scheduling to run using single command as node_modules.bincypres run –spec .cypressintegration*.spec.js –env configFile=configuration_file I am mochawsome reporter to generate result file. But I have a problem with output files. Instead of having those json report files named as mochawsone_xx, I need the ..

Read more

I want to view the output of cy.log() command in mochawesome HTML report. Below is the code /// <reference types="cypress" /> describe("Cypress File Upload", function() { it("File Upload test", () => { cy.visit(‘https://the-internet.herokuapp.com/’) cy.get(‘a[href="/upload"]’).click() const file = ‘example.json’ cy.get(‘#file-upload’).click().attachFile(file) cy.get(‘#file-submit’).click() cy.log(file) cy.get(‘#uploaded-files’).contains(‘example.json’, {matchCase: true}) }) }) The generated HTML report shows cy.log(file) as it is ..

Read more

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 mochawesome –reporter-options overwrite=false,html=false,json=true,reportDir=’test/api/report/mochawesome-report’", In the generated report the code snippet of tests are included, but not from the ts files, but from the ..

Read more