zaqqaz / jest-allure

Generate Allure Report for jest. Allure Report, a flexible lightweight multi-language test report tool with the possibility to add steps, attachments, parameters and so on.
MIT License
113 stars 38 forks source link

jest-allure not working with testRunner jest-circus #16

Open gg-hsi opened 5 years ago

gg-hsi commented 5 years ago

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?

test-pilott commented 5 years ago

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

andreabisello commented 4 years ago

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

4ekki commented 4 years ago

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.

olexandr13 commented 3 years ago

+1 actual for me

zaqqaz commented 3 years ago

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

andreabisello commented 3 years ago

@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.

waynevanson commented 3 years ago

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?

morsa1 commented 1 year ago

any news about use allure with jest-circus?

streLer commented 1 year ago

any news about Jest-Circus support?