agent-python-pytest icon indicating copy to clipboard operation
agent-python-pytest copied to clipboard

support for pytest-html reports

Open fenchu opened this issue 3 years ago • 2 comments

We have highly tuned pytest-html reports showing screenshots walk-through and screenshots on errors. Is there a way to upload the entire directory with report, screenshots and other log files?

Currently we use gitlab-ci to run the tests, and report it to jenkins via its rest-api, there the report looks as it should, but jenkins have other limitations.

Keep up the good work.

fenchu avatar Mar 28 '22 11:03 fenchu

@fenchu Do you want a tool which will parse your report and fulfill Report Portal accordingly?

HardNorth avatar Apr 12 '22 12:04 HardNorth

Just viewing the report (reportportal already parses the data correctly via pytest) it is a plain pytest-html report using pytest plugin: https://github.com/pytest-dev/pytest-html (my local fork only have some small changes to the layout, to support more images)

Enclosed is an example of how it looks, it is a *.html file inside a directory with embedded css, javascript, screenshots. it is stored as an attachment to gitlab job (gitlab.zip) where you can see it if you download it, or in jenkins where it shows up directly using the https://plugins.jenkins.io/htmlpublisher/ plugin.

gitlab.zip

it is all just a generic way to enclose a html page with some css and javascript for folding and presentation.

fenchu avatar Apr 12 '22 14:04 fenchu