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

Question: Allure report shows unnecessary hooks and random order number in the report #154

Closed
kashiMathura opened this issue May 14, 2024 · 2 comments
Labels
question Further information is requested

Comments

@kashiMathura
Copy link

kashiMathura commented May 14, 2024

I have not added any hooks and the allure report shows a lot of reporting in before hooks and after hooks.
Is there any way that I show it in report only the implement which I have added?

Also the steps shows incorrect order number
Example:
#1
#3
#2
#4

For example , I do not want these in the the reporting

sBefore Hooks
50msfixture: $cucumber
1msfixture: $workerHookFixtures
0msfixture: $beforeAll
1msfixture: $afterAll
0msfixture: $testMetaMap— src/features/login.feature.spec.js:31
0msfixture: $testMeta
1msfixture: $applySpecialTags
0msfixture: $scenarioHookFixtures
0msfixture: $tags
1msfixture: $test— src/features/login.feature.spec.js:31
1msfixture: $step
0msfixture: $bddWorldFixtures
1msfixture: $lang
0msfixture: $uri— src/features/demo.feature.spec.js:31
0msfixture: $bddWorld
1msfixture: $after
0msfixture: $before
0msfixture: Given
746msfixture: browser
30msfixture: context
418msfixture: page
1msfixture: When
1msfixture: Then
0msfixture: And


After Hooks
1msfixture: And
0msfixture: Then
0msfixture: When
0msfixture: page
0msfixture: context
0msfixture: Given
0msfixture: $before
1msfixture: $after
0msfixture: $bddWorld
0msfixture: $uri— src/features/demo.feature.spec.js:31
0msfixture: $lang
0msfixture: $bddWorldFixtures
0msfixture: $step
0msfixture: $test— src/features/demo.feature.spec.js:31
1msfixture: $tags
0msfixture: $scenarioHookFixtures
0msfixture: $applySpecialTags
0msfixture: $testMeta
0msfixture: $testMetaMap— src/features/demo.feature.spec.js:31

@kashiMathura kashiMathura added the question Further information is requested label May 14, 2024
@kashiMathura kashiMathura changed the title Question: Cucumber Report shows a lot of before hooks and after hooks Question: How to hide before hooks and after hooks in reporting and show only the intended implementation May 14, 2024
@kashiMathura kashiMathura changed the title Question: How to hide before hooks and after hooks in reporting and show only the intended implementation Question: Allure report shows unnecessary hooks and random order number in the report May 15, 2024
@vitalets
Copy link
Owner

Could you share more details on that - show example of the report and code how do you generate it?
A full demo would be very helpful: https://github.com/vitalets/playwright-bdd-example

@vitalets
Copy link
Owner

vitalets commented Aug 5, 2024

Closing as outdate. Feel free to try on the latest version of playwright-bdd and re-open if needed.

@vitalets vitalets closed this as completed Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants