allure-js icon indicating copy to clipboard operation
allure-js copied to clipboard

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

Open sajeerk123 opened this issue 1 year ago • 2 comments

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

sajeerk123 avatar Nov 11 '24 18:11 sajeerk123

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

baev avatar Nov 11 '24 18:11 baev

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.

sajeerk123 avatar Nov 11 '24 18:11 sajeerk123

@sajeerk123 the integration doesn't work with a proper configuration. If you didn't configure Allure at all, the problem most likely relates to Cypress or your environment. Please don't hesitate to reopen the issue if the problem won't be solved after the reporter configuration.

epszaw avatar Jul 17 '25 14:07 epszaw