allure-framework / allure-framework/allure3
Quality Gate - Show Passed Rules
- Dominant language
- HTML
- Stars
- 401
- Forks
- 58
- Avg merge
- 2d 20h
- Merged PRs (30d)
- 34
Description
### What problem should this solve?
Currently, when a test run passes all Quality Gate rules, the Quality Gate tab displays "No quality gate results available". This can be misleading for report viewers, as it may give the impression that no Quality Gate rules have been configured for the project.
Additionally, when multiple Quality Gate rules are configured and only one fails, only the failing rule is displayed. This can make it appear as though only that single rule exists, while the successfully validated rules remain invisible.
From a reporting perspective, this makes it difficult for users reviewing the report to understand the full Quality Gate configuration and the overall quality assessment.
### What would you like to happen?
A successful Quality Gate check is still a meaningful result and should be visible.
It would be valuable if the Quality Gate tab displayed all configured rules, including both passed and failed rules. This would provide a complete overview of the quality criteria that were evaluated and make the report more transparent.
As a QA engineer, I use the Allure report to communicate automated test results to stakeholders and decision-makers. I am not the person making the quality decisions, so the report should clearly show all evaluated criteria to help others understand the outcome.
Maybe something like this could help?
### Alternatives considered
I looked into the generated report files and noticed that after the report is generated, a quality-gate.json file is created at allure-report/widgets/quality-gate.json
When a Quality Gate rule fails, the file contains an entry with a structure similar to:
```
{
"default": [
{
"success": false,
"actual": XXX,
"expected": XX,
"rule": "XXX",
"message": "XXX"
}
]
}
```
A workaround i looked into would be to post-process this file after report generation, append successful rule results manually with "success": true, and apply custom CSS changes to make them visible in the UI.
However, this approach feels fragile and would require maintaining custom logic outside of Allure. A native Quality Gate display that includes both passed and failed rules would provide a more reliable and consistent solution for users.
### Additional context
Thank you for taking the time to look into this suggestion.
Contributor guide
Research direction
Start by inspecting allure-report/widgets/quality-gate.json and the Quality Gate tab that renders it. Compare reports where all rules pass with reports where one rule fails, then trace how the available results reach the UI. Done means the tab visibly lists every configured rule, including passed and failed outcomes, without post-processing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- html
- Domain
- frontend, testing
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100