pytest-html icon indicating copy to clipboard operation
pytest-html copied to clipboard

How to see complete test results on one device on another device?

Open AlanKing95 opened this issue 1 year ago • 2 comments

When the test report is generated on device A, there will be detailed information about each case. I think the original file on device A should be quoted. Like: image

But when I copy the test report of A to B to view it, there is only an overview on B, not the status of each case.Like: image

Is there a way to get the same results on device B as on device A?

AlanKing95 avatar Dec 06 '24 14:12 AlanKing95

Try running with the --self-contained-html flag.

BeyondEvil avatar Dec 06 '24 16:12 BeyondEvil

Try running with the --self-contained-html flag.

Hello, thanks for the reply. The second picture I posted above is the result of using "--self-contained-html". It can only include css files and cannot have detailed information like the first picture.

version: Name: pytest-html Version: 4.1.1 Summary: pytest plugin for generating HTML reports Home-page: Author: Author-email: Dave Hunt [email protected], Jim Brannlund [email protected] License: Location: /home/mi/.local/lib/python3.10/site-packages Requires: jinja2, pytest, pytest-metadata Required-by:

AlanKing95 avatar Dec 07 '24 03:12 AlanKing95