prashanth-sams / pytest-html-reporter

Generates a static html report based on pytest framework
MIT License
117 stars 37 forks source link

Change in the report name dynamically based on the module. #192

Closed priya24it closed 2 years ago

priya24it commented 3 years ago

we changed the name in html_template.py file... but this is static approach.. I am just looking to do change dynamically

nireshs commented 2 years ago

we changed the name in html_template.py file... but this is static approach.. I am just looking to do change dynamically

@priya24it yes this changes needed. @prashanth-sams thanks for all your effort to make this plugin. Really nice to see this detailed and graphical representation of the test report 👍

nireshs commented 2 years ago

@prashanth-sams Please review my changes for the HTML report name update from environment variable. Thanks for your support @priya24it Can you please try this change and let me know your feedback.

prashanth-sams commented 2 years ago

@nireshs @priya24it Added this feature in 0.2.8 Sample Usage:

pytest tests/ --html-report=./report/report.html  --title='YOUR CUSTOM TITLE'