Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Cypress] - when combining multiple reporters, screenshots aren't available to other reporters #1148

Open
harmin-parra opened this issue Sep 21, 2024 · 0 comments

Comments

@harmin-parra
Copy link

Describe the bug
I am using Allure and cypress-mochawesome-reporter.

Screenshots are available in Allure report but not in the mochawesome report.

To Reproduce
the support/e2e.js file:

import './commands'
import 'cypress-mochawesome-reporter/register';
import "allure-cypress";

// Alternatively you can use CommonJS syntax:
// require('./commands')

The reporter.js file:

const { CucumberJSAllureFormatter, AllureRuntime } = require("allure-cucumberjs");

function Reporter(options) {
  return new CucumberJSAllureFormatter(
    options,
    new AllureRuntime({ resultsDir: "../reporting/allure-results/nodejs" }),
    {}
  );
}
Reporter.prototype = Object.create(CucumberJSAllureFormatter.prototype);
Reporter.prototype.constructor = Reporter;

exports.default = Reporter;

Screenshots
The Allure report:
image

The mochawesome report:
image

Expected behavior
Screenshots are also available in the mochawesome report

Additional context
NPM modules:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants