-
Notifications
You must be signed in to change notification settings - Fork 44
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Description:
I am unable to use the @shelex/cypress-allure-plugin reporter with Cypress. I have tried multiple versions (Cypress 13.17.0, 15.4.0 and Allure plugin 2.29.0, 2.41.2, latest), but always get the following error when running npx cypress run:
Steps to Reproduce:
- Install Cypress and @shelex/cypress-allure-plugin (tried multiple versions).
- Use the following config in
const { defineConfig } = require('cypress');
const allureWriter = require('@shelex/cypress-allure-plugin/writer');
module.exports = defineConfig({
e2e: {
setupNodeEvents(on, config) {
allureWriter(on, config);
return config;
},
specPattern: 'cypress/e2e/**/*.cy.js',
supportFile: 'cypress/support/e2e.js',
},
reporter: '@shelex/cypress-allure-plugin',
reporterOptions: { resultsDir: 'allure-results' },
}); - Add import '@shelex/cypress-allure-plugin'; to e2e.js.
- Run npx cypress run.
Expected:
Cypress runs and generates Allure results.
Actual:
Fails with "Cypress is not defined" error.
Environment:
OS: Windows 11
Cypress: 13.17.0, 15.4.0 (tried both)
@shelex/cypress-allure-plugin: 2.29.0, 2.41.2, latest (tried all)
Node.js: [your version]
Additional Info:
Works if I comment out the reporter in config.
Tried clearing cache, reinstalling, and all known workarounds.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working