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

TypeError: allure.label is not a function #486

Open
darkallure opened this issue Aug 20, 2022 · 9 comments
Open

TypeError: allure.label is not a function #486

darkallure opened this issue Aug 20, 2022 · 9 comments
Assignees
Labels
theme:mocha Mocha related issue type:bug Something isn't working

Comments

@darkallure
Copy link

darkallure commented Aug 20, 2022

Describe the bug
Getting an error when parallel mode is on while using Mocha

To Reproduce
Steps to reproduce the behavior:

  1. Set parallel mode to true in mocha.rc config or use "--parallel" flag
  2. Run the tests
  3. Tests fail due to the following error: Uncaught TypeError: hook.error is not a function

Expected behavior
The tests should run successfully in parallel mode with Mocha allure reporter

Screenshots
image
image

Additional context
the following version packages are used:
"allure-mocha": "^2.0.0-beta.19",
"mocha": "^9.2.1"

@epszaw epszaw self-assigned this Sep 7, 2022
@epszaw epszaw added the theme:mocha Mocha related issue label Sep 7, 2022
@epszaw
Copy link
Member

epszaw commented Sep 7, 2022

Could you please share more code or provide a repo, where would be possible to reproduce the problem?

@darkallure
Copy link
Author

Uploading lmru--chords--functional-tests2.zip…
Sure, here is a sample project

@darkallure
Copy link
Author

darkallure commented Sep 12, 2022

@lamartire did you manage to check it out?

@darkallure
Copy link
Author

darkallure commented Sep 12, 2022

example-js-allure.zip
-- one more example

@epszaw
Copy link
Member

epszaw commented Oct 3, 2022

Sorry guys, still working on the the solution

@darkallure
Copy link
Author

Nice, please let me know in case there is an update, thanks

@epszaw
Copy link
Member

epszaw commented Oct 17, 2022

Sorry for the long delay, but at this moment we're a bit paralyzed due parallel mode nuances. I've opened a PR (mochajs/mocha#4922) to mocha which provides required changes to restore back labels functionality, but I haven't yet got any response from them. Let's wait for the merge.

@BrianSalesLoft
Copy link

any update on this?
I'm having the same issue

@baev
Copy link
Member

baev commented May 31, 2024

3.0.0-beta.1 introduced support for parallel mode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme:mocha Mocha related issue type:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants