-
Notifications
You must be signed in to change notification settings - Fork 228
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 Report Displays Multiple Scenarios for Karate callonce & call Invocation #1143
Comments
@umitozdemirf, could you please provide a repository with a minimal example to reproduce the problem? A public repository on GitHub works the best. Thanks |
Allure Karate Example RepositoryYou can use this repository to reproduce the issue: allure-karate-example-call. Steps to Reproduce
I’m happy to collaborate and provide a fix or enhancement related to the call behavior in Allure reports. Looking forward to your feedback! 😊 FYI @baev |
Hey @baev, I figured out a fix for the issue where Problem
Solution
Result
Let me know if you'd like to discuss this further! Cheers 🍻 |
What happened?
When using callonce in Karate, the Allure report displays the called scenario as a separate test case. This behavior increases the number of scenarios shown in the report, which can be misleading when trying to analyze test results.
Steps to Reproduce:
Write a Karate test that uses callonce to call another feature file.
Run the test and generate an Allure report.
Observe that the scenario invoked by callonce appears as a separate test case.
Expected Behavior:
The callonce-invoked scenario should ideally:
Be nested under the main test case, or
Not appear as a separate test case in the report.
Actual Behavior:
The callonce-invoked scenario is listed as a separate test case, which creates confusion about the actual number of executed tests.
Questions:
Is this the expected behavior for Karate with Allure integration?
Are there recommended configurations or workarounds to handle this more effectively?
Contribution:
If this is a confirmed issue or an enhancement opportunity, I’d like to contribute to finding and implementing a solution.
Thank you.
What Allure Integration are you using?
allure-karate
What version of Allure Integration you are using?
2.22.0
What version of Allure Report you are using?
2.22.0
Code of Conduct
The text was updated successfully, but these errors were encountered: