Search code examples
azure-devopsctest

Azure devops publish test results with links to requirement


I'm currently using cTest to publish test results from google test into azure.

Is there any way i can decorate my test so it comes up already linked to a requirement. without manually having to link it in azure?

Edit: I'm using gtest recordproperty to add data to the xml output of the test case. I have tried with #1234( as in a commit), 1234 and several combinations. I cannot find anything in the documentation.


Solution

  • Currently, you could refer to this doc: Run automated tests from test plans to automate test cases in your test plans and run them directly from Azure Test Plans. And then open the Test Plans page and select the test plan to see the status of your tests if tests are updated after test execution is complete.

    In addition, if you turn on below “Automatically link new work in this build” option in build pipeline page, and then you can link work item to Git commit, the new build queued by this commit will link to this work item when it completes successfully. enter image description here

    Also, you could enable “Create work item on failure” option to create a new work item when this build is failed.

    BTW, you could link work items to deployments refer to this doc.