qase-tms / qase-javascript

Qase TMS JavaScript SDK
https://developers.qase.io
49 stars 43 forks source link

Could not load reporter by name: cypress-qase-reporter #18

Closed bawahakim closed 2 years ago

bawahakim commented 3 years ago

Getting this error when trying to run QASE_REPORT=1 yarn run cypress run.

My cypress.json file :

  "reporter": "cypress-qase-reporter",
  "reporterOptions": {
    "apiToken": "XXX",
    "projectCode": "IW",
    "runId": 45,
    "logging": true
  }
}

Following some users having similar issue, I have tried changing reporter to ./node_modules/cypress-qase-reporter/dist/index.jx, it does not fix the issue. However, writing ./node_modules/cypress-qase-reporter/dist/mocha.js actually makes the code run, but I get this error :

TypeError: invalid reporter '[object Object]'{
  code: 'ERR_MOCHA_INVALID_REPORTER',
  reporter: { qase: [Function: qase] }
}

I have also installed mocha as a dev-dependency, but it also does not work.

I'm using :

"cypress": "7.0.1"
"cypress-qase-reporter": "^1.3.0"
borisno2 commented 3 years ago

Any update on this? I am also getting the same error.

zeburek commented 3 years ago

Maybe one of you can prepare a repo with reproduction? I can't reproduce it on my own

чт, 12 авг. 2021 г., 10:49 Josh Calder @.***>:

Any update on this? I am also getting the same error.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/qase-tms/qase-javascript/issues/18#issuecomment-897423512, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE7DFY4O4VYEPW4PRJV2HDDT4N4G5ANCNFSM44PCOTKQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

bawahakim commented 3 years ago

Sorry, not working on this project anymore :/ Best of luck!

borisno2 commented 3 years ago

Maybe an issue with Macos? I tried the same repo using a cypress docker container and it worked fine.

zeburek commented 3 years ago

Ok, I'll take a look on macos

пн, 16 авг. 2021 г., 04:53 Josh Calder @.***>:

Maybe an issue with Macos? I tried the same repo using a cypress docker container and it worked fine.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/qase-tms/qase-javascript/issues/18#issuecomment-899160269, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE7DFYYTHVIX6B5BP4SHTC3T5BVTFANCNFSM44PCOTKQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

evgenykochetkov commented 3 years ago

Hello! Sorry for the delay. I investigated the issue, and it looks like the problem was in the deasync dependency. I will release a fix soon.

alexandrabusu commented 3 years ago

Any update on this?

1ivliev commented 2 years ago

Fixed, please use the latest version of the reporter.