AzureDevOpsBuild.

GetTestRuns(Nullable<int>) Method

Summary

Gets the test runs of the build including test results.

Syntax

public IEnumerable<AzureDevOpsTestRun> GetTestRuns(Nullable<int> maxResultsPerTestRun)

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.

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.