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

taskreportAllureCypressSpecMessages, {absolutepath: /home/c770/Projects/ProjectOne/cypress/e2e/getting-started/login..js, messages: Array[10]}, {log: false} #1187

Open
sajeerk123 opened this issue Nov 11, 2024 · 2 comments

Comments

@sajeerk123
Copy link

sajeerk123 commented Nov 11, 2024

Describe the bug
Run the cypress code after downloaded the "allure-cypress" ( "^3.0.6". Not configured) I am getting this error.

To Reproduce
Create a cypress project and download cypress allure and run a test

package.json

{
  "name": "omangweb",
  "version": "1.0.0",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "testOne": "npx cypress run ----env allure=true"
  },
 
  "description": "",
  "devDependencies": {
    "allure-cypress": "^3.0.6",
    "cypress": "^13.15.1"
  }
}

cypress.config.js

const { defineConfig } = require("cypress");

module.exports = defineConfig({
  e2e: {
    setupNodeEvents(on, config) {
      // implement node event listeners here

    },
    specPattern:'cypress/e2e/getting-started/*.js
  },
});

Expected behavior
It should not raise the error. It should be work normally

Screenshots of Actual Output
Error
image

Desktop (please complete the following information):

  • OS: Ubuntu 22.04
  • Browser chrome
  • Version : Cypress 13.15.1
@baev
Copy link
Member

baev commented Nov 11, 2024

@sajeerk123
Copy link
Author

Have you seen https://allurereport.org/docs/cypress-configuration/#using-with-custom-handlers?

I didn't configure anything for allure-cypress. I have opened using 'npx cypress open' and run a spec. 
After I got the above error.

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

No branches or pull requests

2 participants