Get test results folder in script from TFS 2015 build

The team uses the TFS 2015 vNext build system to manage our CI build. We want to use some script to analyze the test results. But the test results folder is always called a GUID, which is automatically assigned to each assembly. For instance:

enter image description here

Is there any way to get which specific folder or several folders are used to store test results only for the current build run during build execution, for example, using some variables?

+4
source share
1 answer

There is a common agent variable:

Variable Name: Common.TestResultsDirectory

: COMMON_TESTRESULTSDIRECTORY

: , . $(Agent.BuildDirectory)\TestResults

:

. , (, $env: COMMON_TESTRESULTSDIRECTORY) powershell script.

$FolderLocation = $env:COMMON_TESTRESULTSDIRECTORY
+1

All Articles