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

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

Open
gg-hsi opened this issue Mar 22, 2019 · 9 comments
Open

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

gg-hsi opened this issue Mar 22, 2019 · 9 comments
Labels
help wanted Extra attention is needed

Comments

@gg-hsi
Copy link

gg-hsi commented Mar 22, 2019

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
Copy link

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

@zaqqaz zaqqaz added the help wanted Extra attention is needed label Jun 4, 2019
@andreabisello
Copy link

andreabisello commented Apr 7, 2020

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

@4ekki
Copy link

4ekki commented Jul 3, 2020

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
Copy link

+1
actual for me

@zaqqaz
Copy link
Owner

zaqqaz commented Jun 7, 2021

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
Copy link

@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
Copy link

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
Copy link

morsa1 commented Apr 14, 2023

any news about use allure with jest-circus?

@streLer
Copy link

streLer commented May 17, 2023

any news about Jest-Circus support?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

9 participants