-
Notifications
You must be signed in to change notification settings - Fork 243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Report fixture setup and teardown #131
Comments
There are already command line options for showing these, as shown below from
I don't think any of this will be displayed in the HTML report though. I'd be happy to merge a patch that adds the fixture details to the HTML report when |
True I did not think of that option, I will have a look at how it is implemented in pytest. |
Hi, sorry for the bump but any news about this ? |
I have not really looked into it yet. It should be easy to make a workaround adding to pytest-html extra content from the pytest_fixture_setup hook. |
@iwanb @davehunt any news about this question? in my code, create a logger in setup_class ;and i logged some information in both setup ,testcase and
run pytest case using
html report only show logs in setup_class and testcase ;but Teardown log not shown in html
|
Just wanna bump this, any chance someone can look into a fix? |
I'm curious, if we see a 'teardown' event come in instead of a 'call' can we just delete the last row of html and create a new one then as if it had been a 'call'.. (Then also fix test counts). |
Hi @ruck94301. What version of this plugin are you using? |
sorry, are you looking for 4.6.11 or something else? |
oh right, I suppose the python version is important context for reproducing, sorry for not including that. |
@ruck94301 is this an issue with pytest or pytest-html? |
I'm saying pytest. I'm not using pytest-html. Maybe my observation helps explain the behavior seen pytest-html. |
Hi,
I would like to vizualize when fixtures are set up and teared down, the time they take, their output and if they failed.
I think they could be added in the Results section, filtered by default, around the tests.
It might add a lot of information, so it would look better along with #33
Would you be open to such an enchancement? (It could be optional if needed.)
Do you see issues it might create? Would you do it in a different way?
The text was updated successfully, but these errors were encountered: