HTML reports is broken when its downloaded from github action using github artifact

117 views Asked by At

I am running my test into GitHub action and after test execution is completed I download generated report using github/action-artifact and when I open that report design is broken.

My report is in the below format when I generate it from my local. enter image description here

and when I download reports from GitHub action it looks like the below format.

enter image description here

What is the problem can anyone know?

1

There are 1 answers

1
MortenB On

Please look up the header in the html report generated by pytest-html, it holds:

<head>
    <meta charset="utf-8">
    <title>YOUR TITLE</title>
    <link href="assets/style.css" rel="stylesheet" type="text/css">
</head>

If you have screenshots (using Extras), they are located in basedir.

The rest I believe is enclosed in the *.html file.