Search code examples
pythonseleniumpytestallurepytest-html

Create Pytest-html Report that is Downloadable and Customizable in Python


In line with our ongoing task of migrating C# code to Python, specifically in terms of HTML report generation: Do we have any framework on Python that can create a html report of test cases (website quality assurance check via Selenium) with the HTML report and that HTML report outcomes can be customizable - something like Allure Framework, but the HTML report can be downloaded?


Solution

  • You can probably host your allure reports in some cloud service like aws and send the link to your users to view the reports.

    There's one more that tries to convert allure report into a html version. You can check it here. I haven't tried it though.

    If you do not need allure at all, then there's a pytest-html-reporter that you can install using pip install pytest-html-reporter, which is even more customizable than pytest-html. It will give you the feel of the allure report.

    Check the screenshots in their github page. I'd say its pretty good but anything more than that, you have to use a lot of css to do your own customizations.enter image description here