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

jest-allure not working with testRunner jest-circus

Open gg-hsi opened this issue 5 years ago • 9 comments

Hi all, I'm having the following issue

ReferenceError: jasmine is not defined

> 1 | import "jest-allure/dist/setup";
    | ^
  2 | 

  at registerAllureReporter (node_modules/jest-allure/dist/setup.js:46:5)
  at Object.<anonymous> (node_modules/jest-allure/dist/setup.js:49:1)
  at Object.<anonymous> (jasmine.config.js:1:1)
      at Array.forEach (<anonymous>)

Is it mandatory to use the default testRunner jasmine2 to be able to use this reporter?

gg-hsi avatar Mar 22 '19 12:03 gg-hsi

Is there a plan to fix the integration with jest-circus?

test-pilott avatar Apr 15 '19 15:04 test-pilott

same issue here. @zaqqaz some news 10 months later? thanks

andreabisello avatar Apr 07 '20 14:04 andreabisello

https://www.npmjs.com/package/allure-jest-circus - I used this lib to launch allure reports on top of jest-circus results. However, I'm not sure if it supports everything else, like steps annotations.

4ekki avatar Jul 03 '20 10:07 4ekki

+1 actual for me

olexandr13 avatar Feb 25 '21 18:02 olexandr13

Sorry I don't have enough time to create PR to support jest-circus, so the only option is to switch to jasmine https://github.com/zaqqaz/jest-allure#uses-jest-circus-or-jest--v-27-

But I'm happy to review PR if any to support this feature

zaqqaz avatar Jun 07 '21 12:06 zaqqaz

@zaqqaz thanks for your suggestion. i use jest-circus because i need to use jest-retry https://github.com/facebook/jest/blob/f45d1c939cbf55a71dbfdfc316d2be62b590197f/docs/JestObjectAPI.md#jestretrytimes i know test should not have needs to retry, but in my case, i must to do it. maybe i will find some other plugins to retry failed tests.

andreabisello avatar Jun 08 '21 08:06 andreabisello

I wouldn't mind giving this a crack.

All the logic inside src/setup needs to be adapted to src/index.ts, is that correct?

waynevanson avatar Aug 14 '21 08:08 waynevanson

any news about use allure with jest-circus?

morsa1 avatar Apr 14 '23 20:04 morsa1

any news about Jest-Circus support?

streLer avatar May 17 '23 19:05 streLer