Skip to content
Advertisement

Tag: pytest-html

customize html table of pytest with docstring of the test

I have a pytest test function as below. I’d like to print this test_mytest.docstring in the html report as a column between test and duration columns. I could gather that the pytest_runtest_makereport() pytest.mark.hookwrapper could help. Is there any code snippets that I can use as a reference to make the modification Answer Fortunately the exact example is mention in the

Advertisement