javirs
javirs

Reputation: 1100

publish UT results (TRX) to azure devops

I have a project opened in azuer-devops but I'm only using the boards for it's control. The sources are in our local SVN and should not be connected to azure.

I would like to have my tests defined in azure and publish my results (trx?) when I run them so we can all see the evolution in the boards. Is that possible? Can I use the test section of azure without sharing the code?

PS: If SO is not the place for such a question, can someone redirect me?

Upvotes: 2

Views: 5955

Answers (1)

Andy Li-MSFT
Andy Li-MSFT

Reputation: 30362

If you mean run the test locally with VisualStudio and generate the test results (TRX), then you can use the Publish Test Results task to only publish the test results to Azure Pipelines. After that you can see the results in Azure DevOps.

  1. Add the test results (TRX) to source control
  2. Add a Publish Test Results task, set the search folder to find the TRX file

Reference this answer : Publishing test results through command line test runner in VSTS

Upvotes: 3

Related Questions