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

Badge Request: Azure DevOps Test Results #2411

Closed
mehmetseckin opened this issue Nov 27, 2018 · 6 comments
Closed

Badge Request: Azure DevOps Test Results #2411

mehmetseckin opened this issue Nov 27, 2018 · 6 comments
Labels
service-badge New or updated service badge

Comments

@mehmetseckin
Copy link
Contributor

mehmetseckin commented Nov 27, 2018

📋 Description
Heavily inspired by #2237, I would like to propose test result badges for Azure Pipelines builds. I have been working on a proof-of-concept, so I'd love to add this functionality myself, or help along the way.

  • Which service is this badge for?
    Azure DevOps (Azure Pipelines)

  • What sort of information should this badge show?
    Summary of test results, e.g.:

    It would be nice to have the compact_message feature like the appveyor tests service:

🔗 Data

  • Is there a public API?
    Yes, but it is undocumented. Here is an example request:
https://dev.azure.com/azuredevops-powershell/azuredevops-powershell/_apis/test/ResultSummaryByBuild?buildId=20

This returns an aggregated analysis object which can be parsed to form the badge.

{
    "aggregatedResultsAnalysis": {
         "totalCount": 22,
         "resultsByOutcome": {
             "Passed": {
                  "count": 20
              },
             "Failed": {
                  "count": 1
              }
         }
     }
}
  • Does the API requires an API key?
    Only for private projects.
@calebcartwright
Copy link
Member

Nice @mehmetseckin I was hoping this would materialize but didn't see the API in the docs so I thought this would be blocked. Good find!

@paulmelnikow
Copy link
Member

Thanks for implementing this!

@JGCreator

This comment has been minimized.

@calebcartwright

This comment has been minimized.

@willianantunes

This comment has been minimized.

@calebcartwright

This comment has been minimized.

@badges badges locked as resolved and limited conversation to collaborators May 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
service-badge New or updated service badge
Projects
None yet
Development

No branches or pull requests

5 participants