Is is possible to set test case results from an ADO deployment pipeline

57 Views Asked by At

I have a test project. The project has tests that are associated with test cases in our backlog. Our release pipeline builds and runs the tests as part of our deployment using the VSTest task. The tests run and complete successfully. I can view the results of the run in Azure test plan, however the associated test cases do not get marked as pass/fail.

Should we be able to do this from the pipeline? Is there something in particular that I might be missing?

Tried to run a test project using VSTest from a release pipeline.

Expected test cases associated with automated the tests to be marked as pass/fail

1

There are 1 best solutions below

2
On BEST ANSWER

Based on your requirement, you can use VSTEST with the test selection of Test plan option. Kindly take my sample below for a reference.

  1. I have an active test case (#838) under Test Suite - Test in release pipeline (#839) in the test plan of DotNetTest (#836) which is associated with test assembly AzureWebAppDotNetCoreTests.dll; enter image description here

  2. In one of the stages of my release pipeline, I use the VSTest task and select the expected Test plan\Test Suite; enter image description here

  3. During a new release, the pipeline will search the associated assembly from the Search folder and execute automated tests;

  4. Running this test in release pipeline will then populate test runs and automatically update the result for the test case. enter image description here

Hope the suggestion could meet your expectations.