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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure Devops Test Results Badge doesn't work #9931

Closed
DannyW5 opened this issue Jan 29, 2024 · 3 comments
Closed

Azure Devops Test Results Badge doesn't work #9931

DannyW5 opened this issue Jan 29, 2024 · 3 comments
Labels
question Support questions, usage questions, unconfirmed bugs, discussions, ideas service-badge Accepted and actionable changes, features, and bugs

Comments

@DannyW5
Copy link

DannyW5 commented Jan 29, 2024

Are you experiencing an issue with...

shields.io

馃悶 Description

Test Results Badge for Azure Devops doesn't work. I've tried with multiple pipelines with unittest and each time i have tests invalid:
image

馃敆 Link to the badge

https://img.shields.io/azure-devops/tests/abbevci/Charger.Test/1223

馃挕 Possible Solution

Maybe something changed by Azure DevOps REST API side?

@DannyW5 DannyW5 added the question Support questions, usage questions, unconfirmed bugs, discussions, ideas label Jan 29, 2024
Copy link
Contributor

Badge tested using npm run badge https://img.shields.io/azure-devops/tests/abbevci/Charger.Test/1223
Output is available here

@chris48s
Copy link
Member

Hello. This badges works for a known good project e.g: https://img.shields.io/azure-devops/tests/azuredevops-powershell/azuredevops-powershell/1

The request we are trying to make to get the data for https://img.shields.io/azure-devops/tests/abbevci/Charger.Test/1223 is https://dev.azure.com/abbevci/Charger.Test/_apis/build/builds?definitions=1223&%24top=1&statusFilter=completed&api-version=5.0-preview.4 which gives us a login page - that's why the request is failing, but it is hard to say much more than that.

I can't really debug this for you much further other than to say: Try double-checking what you're doing to extract you organization, project and definitionId to arrive at that URL against the instructions on https://shields.io/badges/azure-dev-ops-tests

@chris48s chris48s added the service-badge Accepted and actionable changes, features, and bugs label Jan 29, 2024
@DannyW5
Copy link
Author

DannyW5 commented Jan 31, 2024

Ok, so I suppose it can not be done without two-step authentication, so I think this bug can be closed.

@DannyW5 DannyW5 closed this as completed Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Support questions, usage questions, unconfirmed bugs, discussions, ideas service-badge Accepted and actionable changes, features, and bugs
Projects
None yet
Development

No branches or pull requests

2 participants