-
Notifications
You must be signed in to change notification settings - Fork 69
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
[FEATURE] Add screenshot/video file to pytest-html report #121
Comments
I think this would be amazing feature tbh. Like, incredibly useful. I was just thinking of adding this myself in our project but it makes much more sense to do this as a part of this repo. |
Is there any update on this feature? |
This is already supported in pytest-html, using the report.extra, In my conftest.py, I have the following, this is called for every test, so you need to have a global to makes sure you only add uncataloged screenshots, You also need to use unique filenames of screenshots:
And in your pytest tests you have the following: (for me webhost is our testenvironment fixture like --webhost=test1), but it is the directory you add screenshots to in your test.
|
Hi! Would you add reporter like Node.js to main QA language? |
pytest-playwright can automatically generate screenshots and video for each test. So it would be great if pytest-html could automatically include those. |
See this existing html report where we can add attachments: https://github.com/pytest-dev/pytest-html
Relates #105
The text was updated successfully, but these errors were encountered: