Is there a way to provide custom message for each test when I use [pytest-html-reporter]https://pypi.org/project/pytest-html-reporter/?
I tried both print and logging statement for my tests but they are not shown in the report.
I call the pytest test as follows:
pytest --cache-clear -v -s --capture=tee-sys --html-report=./Reports/report.html --title='Dashboard' --self-contained-html .\DASHBOARD\Tests\test_dashboard.py
The report only shows the Suite,Test case name,Status,Time,Error Message.
Any help much appreciated.
In my case I have written a custom HTML that allowed me to add a note to the HTML. The pytest-html-reporter have support for adding custom HTML so you could add a function that will do this with the extra fixtur:
Example:
Note this part of code is untested and just a quick example: