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

Report generated is always at version 5.1.14.0 on AzureDevops #659

Closed
vanwx opened this issue Mar 18, 2024 · 1 comment
Closed

Report generated is always at version 5.1.14.0 on AzureDevops #659

vanwx opened this issue Mar 18, 2024 · 1 comment

Comments

@vanwx
Copy link

vanwx commented Mar 18, 2024

Describe the bug
I tried to use latest version 5.2.3 but the generated report on azure devops always is at 5.1.14.0

To Reproduce
The following input helps to reproduce your issue:

  1. Install ReportGenerator from Marketplace https://reportgenerator.io/usage
  2. Follow the instruction and add the task
          - task: reportgenerator@5
            displayName: coverage report generator
            inputs:
              reports: $(workingDirectory)/$(testResultsDir)/coverage.cobertura.xml
              targetdir: $(workingDirectory)/$(testResultsDir)/cobertura
              reporttypes: HtmlInline_AzurePipelines
  1. Observed the task is called with latest version 5.2.3
18T08:53:21.6170593Z Task         : ReportGenerator
2024-03-18T08:53:21.6170637Z Description  : ReportGenerator converts coverage reports generated by coverlet, OpenCover, dotCover, Visual Studio, NCover, Cobertura, JaCoCo, Clover, gcov, or lcov into human readable reports in various formats.
2024-03-18T08:53:21.6170757Z Version      : 5.2.3
2024-03-18T08:53:21.6170801Z Author       : Palmmedia
2024-03-18T08:53:21.6170846Z Help         : [More Information](https://github.com/danielpalme/ReportGenerator)
2024-03-18T08:53:21.6170920Z ==============================================================================
2024-03-18T08:53:21.7112055Z [command]/opt/hostedtoolcache/dotnet/dotnet /agent/_work/_tasks/reportgenerator_be803a55-9253-4895-a525-be570d86f161/5.2.3/tools/net6.0/ReportGenerator.dll -reports:/agent/_work/1/s/TestResults/coverage.cobertura.xml -targetdir:/agent/_work/1/s/TestResults/cobertura -reporttypes:HtmlInline_AzurePipelines -sourcedirs: -historydir: -plugins: -assemblyfilters:+* -classfilters:+* -filefilters:+* -verbosity:Info -title: -tag:1.0.1+12345678dc_#932105 -license:
2024-03-18T08:53:22.2357529Z 2024-03-18T08:53:22: Writing report file '/agent/_work/1/s/TestResults/cobertura/index.html'
2024-03-18T08:53:22.2708142Z 2024-03-18T08:53:22: Report generation took 0.4 seconds
2024-03-18T08:53:22.2789900Z ##[section]Finishing: Test Report Generator
  1. The generated report is still with old version 5.1.14.0
    image

I also tried with dotnet global tool and still get the same issue on Azure Devops.
Running cmd on my Windows machine work fine with correct version.

@vantheshark
Copy link

I came accross this issue #646

Turn out it's Azure Devops publishing coverage task that regenrate the report.

@vanwx vanwx closed this as completed Mar 18, 2024
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