ShaftHQ / SHAFT_ENGINE

SHAFT is a unified test automation engine for web, mobile, API, CLI, database, and desktop e2e testing. Powered by best-in-class frameworks, SHAFT provides a wizard-like syntax to drive your automation efficiently, maximize your ROI, and minimize your learning curve with no limitations! Stop reinventing the wheel! Upgrade now!
https://shafthq.github.io/
MIT License
324 stars 123 forks source link

[Feature Request]: add configuration to allow the override of the current allure report html file #1672

Closed themosaeed closed 3 weeks ago

themosaeed commented 1 month ago

Is your feature request related to a problem? Please describe.

No

Describe the solution you'd like

configuration to allow the override of the current allure report html file

zanoon2020 commented 1 month ago

Dear @themosaeed , kindly explain more what you mean by override current html , do you mean keep history and each time html report contains current and past run ?

themosaeed commented 1 month ago

@zanoon2020 right now the behavior is that with each run a new HTML report is generated and added to the folder alongside the old one. What we need is the option to do this or delete the old one and keep only the most recent report.

zanoon2020 commented 1 month ago

Dear @themosaeed if you are using custome property file try the below property and feedback :

cleanAllureResultsDirectoryBeforeExecution=true

But take into consideration that will wipe the allure history and just keep the last run.

themosaeed commented 1 month ago

@zanoon2020 this clears the allure-results folder but doesn't delete the old HTML report generated in allure-report folder. still adds new one and keeps the old HTML file

zanoon2020 commented 1 month ago

Thanks @themosaeed for feedback ,

We will discuss it and get back to you

MohabMohie commented 1 month ago

@zanoon2020 what I understand is that we need to modify the behavior of "cleanAllureResultsDirectoryBeforeExecution" to clean both the allure results and allure reports directories. which makes sense... shall I leave that to you? I remember you wanted to pickup a small task to warm up. kindly use this branch "1672-feature-request-add-configuration-to-allow-the-override-of-the-current-allure-report-html-file"

zanoon2020 commented 1 month ago

@MohabMohie i think the question is , we want to clean allure results directory and leave allure report history or delete it. And in this situation allure report folder will have it's own flag. Do you agree on this

MohabMohie commented 3 weeks ago

related to #1566 I will restructure the current allure properties and move them to a dedicated "Allure" properties object for better management. this will be a breaking change but will allow the user more customization.