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

Allure-Mocha: add test name to beforeEach name #424

Closed
aposiker opened this issue Feb 23, 2022 · 3 comments · Fixed by #510
Closed

Allure-Mocha: add test name to beforeEach name #424

aposiker opened this issue Feb 23, 2022 · 3 comments · Fixed by #510
Assignees
Labels
theme:mocha Mocha related issue

Comments

@aposiker
Copy link

aposiker commented Feb 23, 2022

When I have beforeEach in my test suite and add test steps inside it will result in a report as several calls of beforeEach for each test. This happens because all beforeEach hooks will have exactly the same name

Describe the solution you'd like
A possible solution from my perspective here could be adding the name of the test on which beforeEach hook was called to the hook's name in report

Describe alternatives you've considered

Additional context
image

on the screenshot you can see the report for suite with 4 tests and beforeEach hook

@aposiker aposiker changed the title Allure-Mocha Allure-Mocha: add test name to beforeEach name Feb 23, 2022
@vovsemenv vovsemenv added the theme:mocha Mocha related issue label May 24, 2022
@epszaw epszaw self-assigned this Jul 28, 2022
@lbltnmrgnv
Copy link

Any updates about this issue?

@epszaw
Copy link
Member

epszaw commented Oct 18, 2022

Could you please share the code example here?

@lbltnmrgnv
Copy link

Could you please share the code example here?

https://github.com/lbltnmrgnv/repro

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

Successfully merging a pull request may close this issue.

4 participants