Azure Test Plans and link to Git Hash Numbers

James Stewart 20 Reputation points
2025-05-21T07:47:31.57+00:00

 

I am looking at your Azure Test Plans. This is on behalf of my employer. We currently build test plans and cases using xlsx. the code is stored in Git Repository. What we would find useful is to link git hash numbers to test plans and test cases. I.e when we start a project we have updated code with git hashes for testing and we would like to link that to the test plans for Test Management. This also aids in bug detection where we trace back to a particular git hash  so we can see who programmed it and tests it and what test cases where done so that we can improve our processes. I have viewed a few vids on Devops and using work items but cannot definitely asses if we can utilise the git hashes in the way we would like..

Azure DevOps
{count} votes

Accepted answer
  1. Siva Pavuluri 380 Reputation points Microsoft External Staff Moderator
    2025-05-21T13:48:10.75+00:00

    Hi James Stewart,

    I understand your concern. While Azure DevOps doesn’t allow you to directly attach a Git commit to a test case, you can achieve the linkage by using work items.

    If your code is stored in GitHub, you can connect your Azure DevOps project to your GitHub repository. Once connected, you can link GitHub commits, pull requests, and branches to Azure Boards work items (including test cases and bugs). This is done by including the syntax AB#{ID} in commit messages or pull request descriptions, where {ID} refers to the Azure Boards work item ID. Please check for GitHub commits, pull requests, branches, and issues to work items in Azure Boards link-to-from-github

    for azure repos to connect-work-items-to-git-dev-ops

    If you have any further questions or need additional assistance, please feel free to let me know.

    Thank you.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.