Closed soma-tf closed 3 months ago
reporterOptions: {
charts: true,
reportPageTitle: 'Test Report',
embeddedScreenshots: true,
inlineAssets: true,
saveAllAttempts: false
},
I used this and it work properly.
Please create a repo with the problem and steps to reproduce the issue so I can have a look.
Thanks.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.
I was having the same issue.
Have you added import 'cypress-mochawesome-reporter/register';
to the cypress/support/e2e.js file?
I am also getting the same error. I will create a repo and will push from my personal account. But what I did was write a failed test with following steps:
npm init -y
npm install cypress --save-dev
npm i --save-dev cypress-mochawesome-reporter
import 'cypress-mochawesome-reporter/register';
require('cypress-mochawesome-reporter/plugin')(on);
, as it gives error in console for npx cypress run
const { defineConfig } = require("cypress");
module.exports = defineConfig({ reporter: 'cypress-mochawesome-reporter', reporterOptions: { charts: true, reportPageTitle: 'custom-title', embeddedScreenshots: true, inlineAssets: true, saveAllAttempts: false, }, e2e: { setupNodeEvents(on, config) { // implement node event listeners here }, }, });
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.
Environment
What happened?
According to the documentation if a test fails , cypress-mochawesome-reporter it should take screenshot and attach it to html report. But actual behaviour is , its taking screenshot and saving it inside a folder.
Config file
Relevant log output
Anything else?
No response