AzureDevOpsBuild.

GetTestRuns(Nullable<int>, IEnumerable<string>) Method

Summary

Gets the test runs of the build including test results.

Syntax

public IEnumerable<AzureDevOpsTestRun> GetTestRuns(Nullable<int> maxResultsPerTestRun, IEnumerable<string> testOutcomes)

Parameters

Name Type Description
maxResultsPerTestRun Nullable<int> Number of maximum test results to read for every test run. 0 for skipping reading of test results. null for reading all test results in batches.
testOutcomes IEnumerable<string> List of test outcomes to look for in the test results. null for reading all test results.

Return Value

Type Description
IEnumerable<AzureDevOpsTestRun> A list of test runs or an empty list if no build could be found and ThrowExceptionIfBuildCouldNotBeFound is set to false.