Skip to content
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

support for pytest-html reports #301

Open
fenchu opened this issue Mar 28, 2022 · 2 comments
Open

support for pytest-html reports #301

fenchu opened this issue Mar 28, 2022 · 2 comments

Comments

@fenchu
Copy link

fenchu commented Mar 28, 2022

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.

@HardNorth
Copy link
Member

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

@fenchu
Copy link
Author

fenchu commented Apr 12, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants