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

tabName seems to not work #8

Open
agrspyro opened this issue Mar 11, 2021 · 6 comments · Fixed by FreakinWard/azure-pipeline-html-report#3
Open

tabName seems to not work #8

agrspyro opened this issue Mar 11, 2021 · 6 comments · Fixed by FreakinWard/azure-pipeline-html-report#3

Comments

@agrspyro
Copy link

Hello,
tabName parameter seems to not work - tab names are always named as 'run-tests #1' not matter that different text is used in parameter.

Task example:

  • task: PublishHtmlReport@1
    displayName: Publish iOS Report
    inputs:
    reportDir: '$(Build.ArtifactStagingDirectory)/iOS_Report.html'
    tabName: 'iOSReport'

Task result:

image

@bkarakashev
Copy link

It doesn't work for me either, also if I set the path to dir with HTML in reportDir it doesn't pick up the file I have to set the exact path to a file.

@goyalg8
Copy link

goyalg8 commented Apr 6, 2021

Hi, I am using this extension in release pipeline but still HTML tab is not appearing. Can you please help me with at least HTML tab can appear in azure devops

@hoani
Copy link

hoani commented Oct 10, 2021

I believe this is due to line:

const name = metadata[2] !== '__default' ? `${metadata[2]} #${metadata[3]}` : metadata[0]

When it's a multi stage build, it adds a count, however this logic also uses the stage name instead of the tab name.

It probably needs to be:

        const name = metadata[2] !== '__default' ? `${metadata[0]} #${metadata[3]}` : metadata[0]

So that it names the tab <tabname> #1 thoughts @JakubRumpca ? Happy to PR this if you agree?

@ericstrong89
Copy link

having same issue. do we know if a fix was ever implemented?

@vladkuperman-payroc
Copy link

Accidently discovered a workaround. Prefix the tab name string with two dots:

tabName: ..DesiredTabName

@RHSolita
Copy link

RHSolita commented May 5, 2023

Accidently discovered a workaround. Prefix the tab name string with two dots:

tabName: ..DesiredTabName

This works as desired. Thanks for the workaround!
For anyone wondering, this is the syntax we are using now:

  • task: PublishHtmlReport@1
    displayName: 'Dependency vulnerabilities'
    inputs:
    tabName: '..Dependency vulnerabilities'
    reportDir: '$(Build.SourcesDirectory)/target/dependency-check-report.html'

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