Azure / pytest-azurepipelines

Plugin for pytest that makes it simple to work with Azure Pipelines
MIT License
113 stars 35 forks source link

Missing inline style in Azure Pipelines Code Coverage #49

Open gioxoay opened 3 years ago

gioxoay commented 3 years ago

Hi everyone, I apply this plugin into my Azure Pipelines BUT Code Coverage missing all inline style, here is my steps:

In Dockerfile

RUN pip install pytest pytest-cov pytest-azurepipelines

In Pipelines Bash step

docker run --mount type=bind,source=$(pwd),target=/app-volume -w /app-volume docker-image-name pytest --cov /app --cov-report=xml --cov-report=html /app

And report result I get does not have inline style

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Coverage report</title>
    <link rel="stylesheet" href="style.css" type="text/css">
    <script type="text/javascript" src="jquery.min.js"></script>
    <script type="text/javascript" src="jquery.ba-throttle-debounce.min.js"></script>
    <script type="text/javascript" src="jquery.tablesorter.min.js"></script>
    <script type="text/javascript" src="jquery.hotkeys.js"></script>
    <script type="text/javascript" src="coverage_html.js"></script>
    <script type="text/javascript">
        jQuery(document).ready(coverage.index_ready);
    </script>
</head>

Then anyone please help me on this issue? Thank you!

jabbera commented 3 years ago

Did you ever find a resolution for this?

teekeycode commented 1 year ago

Here is the fix image