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

HtmlSummary doesn't work with Azure Pipelines #602

Closed
MisinformedDNA opened this issue Apr 7, 2023 · 6 comments
Closed

HtmlSummary doesn't work with Azure Pipelines #602

MisinformedDNA opened this issue Apr 7, 2023 · 6 comments

Comments

@MisinformedDNA
Copy link

Describe the bug
Because of the size of our repo, when code coverage files are generated with HtmlInline_AzurePipelines, we run out of space on our hosted agent.

Error during rendering report for class 'DataModule.DataSetTableAdapters.SomeTableAdapter' (Report type: 'HtmlInline_AzurePipelines'): There is not enough space on the disk. : 'D:\a\1\s\coveragereport\DataModule_SomeTableAdapter.html'

HtmlSummary seemed like a good solution, but it generates a summary.html file, which is not picked up by the Azure Pipeline UI:

image

Some options:

  1. Copy summary.html to index.html.
  2. Add a parameter to name the summary file.
  3. Add a new report HtmlSummary_AzurePipelines.
  4. I add a rename task right afterward.
@danielpalme
Copy link
Owner

I would suggest that you go with option 4.
Your scenario seem to be really rare.

Regarding the other options:

  1. Copy summary.html to index.html.

This could cause problem if you generate other formats as well.

  1. Add a parameter to name the summary file.

Definitely "no". I try to keep the number of parameters as low as possible.
Nobody likes to read the documentation for 100 parameters.

  1. Add a new report HtmlSummary_AzurePipelines.

The behavior would then be different from the other summary reports.

@MisinformedDNA MisinformedDNA closed this as not planned Won't fix, can't repro, duplicate, stale Apr 7, 2023
@marcinsku
Copy link

marcinsku commented Jun 26, 2024

I have a very similar case where, due to the number of classes, generating the report takes a 3-5 minutes. However, generating the HtmlSummary takes only a few seconds.

Option 4 does not work when I simultaneously use publishCodeCoverageResults: true.

Option 2 or 3 would be very useful.

@danielpalme
Copy link
Owner

@marcinsku
I will have a look within the next days.

danielpalme added a commit that referenced this issue Jun 27, 2024
@danielpalme
Copy link
Owner

@marcinsku
HtmlSummary and Html_BlueRed_Summary report types now also create an index.html file.
This file will be displayed in Azure DevOps if you use the publishCodeCoverageResults: true option.

I will publish a new release within the next days.

@marcinsku
Copy link

That's great! Thank you for the quick response.

@danielpalme
Copy link
Owner

New release 5.3.7 is now available.

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

No branches or pull requests

3 participants