Questions tagged [pytest-html-reporter]
6 questions
2
votes
1 answer
pytest-html extras customizing code understanding
I'm trying to customize report.html of pytest using pytest-html plugin.
I searched up many sites(including pytest-html documentation) and found that the code below is commonly used.(The code is in…

jaemmin
- 341
- 1
- 12
1
vote
0 answers
How to create HTML report showing only log messages and no stdout call (print statements of the code)
I am learning pytest and logging using pycharm and python 3.9.6. I wanted to log the desired messages in the HTL report. I am using logging.getLogger(__name__) class for creating a logger object. all i wanted is to display only the log messages and…

jzsls
- 11
- 2
1
vote
2 answers
How to store pytest-html-reporter generated report to a custom location
I am using pytest-html-reporter 0.2.4 plugin to generate execution reports.
when i pass the command line argument "--html-report=./report/report.html" directly i am able to get the report in the given location.
I want to store the report in a…

manu bharadwaj
- 29
- 4
0
votes
0 answers
How do we add additional Tab & customize "test Metrics" in Pytest-html-reporter(pytest-html-reporter 0.2.9)
I wanted to add Additonal Tab/Customize the report by adding additonal columns to "test Metrics"
Any sample code is appreciated.

venki kasula
- 15
- 7
0
votes
0 answers
Can't change test case name in report pytest report
I can't change the test case names in the html report
Based on this I have the following code in my conftest file:
@pytest.mark.hookwrapper
def pytest_runtest_makereport(item, call):
outcome = yield
report = outcome.get_result()
…

Kartoffel
- 11
- 2
0
votes
1 answer
Is any possible for the report in pytest-html to be generate only when 1 test is fail?
I got some tests to be executed and I want the report to be generated only if 1 of the tests are fail, right now I use this command:
pytest -v -s --html=report.html --self-contained-html --capture=tee-sys -rx --verbose --maxfail=6 …

Geogrian Costea
- 27
- 7