pytest-html
pytest-html copied to clipboard
Unescape logs section to display custom html logs
trafficstars
Is there a way to disable html escaping to display custom logs directly from logging.info()
Example:
def test_abcd(f1):
assert 3 > 1, "always passes"
logging.info("<div>Custom div text</div>")
it is displayed as a raw text in the html report, but I would like to have it displayed as a separate div
Probably this https://pytest-html.readthedocs.io/en/latest/user_guide.html#extra-content (extra.html)
or maybe this https://pytest-html.readthedocs.io/en/latest/user_guide.html#modifying-the-results-table
Closing this for lack of interaction. Feel free to re-open.