allure-framework / allure-framework/allure3
Quality Gate - Option to print the quality-gate.json content in the console
- Dominant language
- HTML
- Stars
- 401
- Forks
- 58
- Avg merge
- 2d 20h
- Merged PRs (30d)
- 34
Description
### What problem should this solve?
Currently when running `npx allure quality-gate`, the console only prints the error message, which is fine when you have the full allure report generated but doesn't really help when exporting results as a csv only for example.
### What would you like to happen?
It would be great if we had a flag like --print-results to print the quality gate results the way it is formatted in the allure-report\widgets\quality-gate.json file when using `npx allure run`
having it printed to the console would then allow users to process it using a script or command lines and append it to another file like their csv export for example
### Alternatives considered
I have a script that runs after my allure report was generated based on the exported data, but that means im not using the quality-gate feature at all since i have to compute the results with my script to be able to include it in my export
### Additional context
_No response_
Contributor guide
Research direction
Start with the `npx allure quality-gate` entry point and compare its output with `allure-report/widgets/quality-gate.json` produced by `npx allure run`. Trace where the proposed `--print-results` flag would be handled and how the JSON content is formatted. Done means the flag prints quality-gate results in the console in the same format as the widget file.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100