Skip to content

FreakinWard/azure-pipeline-html-report

 
 

Repository files navigation

azure-pipeline-html-report

Azure DevOps extension that provides a task for publishing report in a HTML format and embeds it into a Build and Release pages.

Extension

In order to see report on tab one must first use Publish HTML Report task. This is supporting task which makes html tab visible.

This task takes one parameter - required reportDir which is a path to report directory and also optional tabName which is the name of the tab displayed within Azure DevOps report.

Example YAML setup

steps:
  - task: PublishHtmlReport@1
    displayName: 'Publish HTML Report'
    inputs:
      reportDir: '$(ResultsPath)/reportName.html'

2023-05-10 - Fixed tab name

This extension patches the original HTML Viewer by Jakub Rumpca and resolves #8 TabName incorrectly renders when using multi-stage pipelines

Before fix:

githubIssue8.png

After fix:

githubIssue8-fixed.png

# tabName has a known bug w/multi-stages: https://github.com/JakubRumpca/azure-pipeline-html-report/issues/8
- task: PublishHtmlReport@1
  displayName: Publish E2E Test Report
  condition: succeededOrFailed()
  inputs:
    reportDir: 'cypress/reports/index.html'
    tabName: 'E2E ${{ parameters.region }}-${{ parameters.slotName }}'

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 50.8%
  • JavaScript 34.3%
  • HTML 13.3%
  • SCSS 1.6%