microsoft / playwright-python

Python version of the Playwright testing and automation library.
https://playwright.dev/python/
Apache License 2.0
11.47k stars 873 forks source link

[Feature] Want to use playwright's build-in reporter (HTML reporter) in python #1296

Open kisscelia opened 2 years ago

kisscelia commented 2 years ago

playwright's native HTML report is so good. can i use it in python?

If i use allure, i can't send an email as an attachment, and pytest-html is simple. :(

Thank you.

kisscelia commented 2 years ago

linked: https://github.com/microsoft/playwright/issues/14046

rwoll commented 2 years ago

The HTML Reporter is implemented with data generated from Playwright Test (Node.js-only at the moment).

playwright's native HTML report is so good.

😄

Adding P3-collecting-feedback label. While this won't work out of the box today, the HTML Report could theoretically be extracted out from Playwright Test and be integrated with data generated from pytest (via a custom reporter https://docs.pytest.org/en/6.2.x/reference.html?highlight=report#id59).

mandras73 commented 12 months ago

Any progress on this? It is really sad to see that less improvements happened for python...

sqanatoliy commented 12 months ago

it would be really great to get Playwright-HTML Reporter for Pytest

Romarionijim commented 9 months ago

is there an update on this matter? it will really be helpful if we could get a built in report that includes screenshots and videos for pytest just like in typescript.

mandras73 commented 9 months ago

Check out https://allurereport.org/docs/pytest/ Example report https://allure-examples.github.io/allure-python-pytest

BMacLinden commented 7 months ago

Our team is looking to switch from Node Playwright to the Python one, but the lack of quality in the report is a big issue. Hard to not have something as solid as what is returned in the Node Playwright version. Big +1 for adding this.

mikedTilia commented 7 months ago

Second this request. Big loss to not have same level reporters for python.

kisscelia commented 7 months ago

allure has single file mode now. https://github.com/allure-framework/allure2/pull/2072 :+1:

we can send email in this mode.

But, i also want to use playwright's native HTML report. :smiley_cat:

AlexKomanov commented 7 months ago

I also will be happy to see a built-in HTML report for the python version.

Mshumaman commented 7 months ago

I also would love to see a built-in HTML report for the python version. Seems that in our area the most common programming language for UI automation is Python. It would help choosing this framework over the competitors

36const commented 7 months ago

It really would be very nice, please add such functional in the python version

bklyuka commented 7 months ago

Agreed. Would be good to have it

Herbert-CN commented 7 months ago

Agree

arsss23 commented 7 months ago

Would love to have html reports for python as well.

Wolvortex commented 6 months ago

would be Amazing ❤

devi-kfuse commented 6 months ago

+1. Please support HTML reports for python

nileshfriendbuy commented 5 months ago

+1 for native HTML reports, something similar to pytest-html should be sufficient as well

systembell commented 4 months ago

This would be a fantastic feature, +1

moh-nex commented 4 months ago

+1 for native HTML reporter for Python!

AR-RIFAT commented 3 months ago

+1

Hacktivist668 commented 3 months ago

+1

dsidler88 commented 3 months ago

This would be a valuable addition. Allure's single-file mode is better than what we had. But not ideal. Still need to install Allure and the file is large. The native playwright report would be a big improvement.

Romarionijim commented 2 months ago

this is open since may 2022 and there is high demand for it, when will this ever get picked up? we want html report for playwright python just like the nodejs version.

io-ma commented 2 months ago

I would like to be able to upload the html report in Github actions as an artifact. I think this would be very useful.