Need for enhanced visibility into test flakiness directly within Allure reports #2391
Replies: 13 comments
-
Wait, but there is a "Flaky tests" filter there on UI: I understand there is an issue with displaying the count of tests, but does this filter work for you, in the first place? |
Beta Was this translation helpful? Give feedback.
-
@noomorph I seen that.. I don't want the flaky of a test result from the run..I have an 3rd party tool known as reportportal.io |
Beta Was this translation helpful? Give feedback.
-
@ShivaPotlapelli In any case, this doesn't look like the correct repository for this issue. The brains of the reporter and Backbone.js UI are here: https://github.com/allure-framework/allure2 |
Beta Was this translation helpful? Give feedback.
-
@noomorph can u migrate this to there in that case..i don't see the repository that u redirected has any specific place to log this..it asks if there integration issues with tech stack . since am using playwright-allurejs ..i logged this issues here. |
Beta Was this translation helpful? Give feedback.
-
@noomorph is right, it doesn't relate to javascript integration. I'll transfer the issue for you. |
Beta Was this translation helpful? Give feedback.
-
@epszaw can you please let us know if there is any thing u could suggest on the above request made |
Beta Was this translation helpful? Give feedback.
-
@ShivaPotlapelli honestly, I think this thing could have been implemented as a plugin. |
Beta Was this translation helpful? Give feedback.
-
Is there a way to customise the report and show it ...I tried via env variables but that not the place where i wanted my flaky number to be appeared..Is there any other way i could do it?? |
Beta Was this translation helpful? Give feedback.
-
It is possible to create a Backbone/Marionette.js plugin. The plugins are not well documented but there are some bits to get started: https://web.archive.org/web/20230321171430/https://docs.qameta.io/allure/#_allure_plugins_system |
Beta Was this translation helpful? Give feedback.
-
@noomorph can someone from u team start on the above |
Beta Was this translation helpful? Give feedback.
-
@ShivaPotlapelli, I have no relation to the Allure Framework team. You must have confused me with someone else. 🤔 |
Beta Was this translation helpful? Give feedback.
-
@baev can u look into above |
Beta Was this translation helpful? Give feedback.
-
@ShivaPotlapelli, I appreciate your request. Currently, Allure Report provides flaky marks for tests based on test history (and allows users to provide it manually from tests using RuntimeAPI). If I understand it correctly, you are asking for:
As @noomorph mentioned correctly, all of the above can be implemented using the Allure plugin API. However, each item is challenging to implement in a general way (so we can push the changes to all the Allure report users). Some of the problems to think of:
So, having all that in mind, what can we do:
|
Beta Was this translation helpful? Give feedback.
-
Is your feature request related to a problem? Please describe.
I find it challenging to highlight the stability of our test suite directly within the Allure reports. Currently, Allure reports categorize test outcomes as Passed, Failed, Broken, Skipped, and Unknown. However, these categories do not provide insight into the flakiness of our tests. Identifying flaky tests is crucial for maintaining the reliability of our CI/CD pipeline. Without a straightforward way to indicate the number of flaky tests in the report, we lack immediate visibility into the health of our test suite.
Describe the solution you'd like
I would like Allure reports to support a new category or indicator specifically for flaky tests, allowing users to see at a glance how many tests were identified as flaky during the test run. This feature should not necessarily detail each flaky test but should instead provide a count or a percentage of tests deemed flaky. Ideally, this indicator would be displayed prominently alongside the existing categories (Passed, Failed, etc.) in the report summary.
Describe alternatives you've considered
Custom Environment Properties: Utilizing the "Environment" section of the Allure report to manually list the number of flaky tests. This method lacks prominence and does not align the flaky test count with the core test result categories.
Report Modification: Post-processing the generated Allure report to include this information, which introduces a maintenance overhead and complicates the report generation process.
External Tools: Leveraging external tools like report portal or dashboards to highlight flaky tests, which requires additional context switching and reduces the cohesion of test reporting.
Additional context
The ability to directly indicate test flakiness within Allure reports would greatly enhance the utility of the reporting tool, providing teams with immediate insights into test suite stability and areas requiring attention. This feature would be especially beneficial for teams prioritizing CI/CD pipeline reliability and looking to reduce flakiness in their automated tests.
Attaching the sample jest html report
Beta Was this translation helpful? Give feedback.
All reactions