Edit

TestHttpClientBase.GetTestRunCodeCoverageAsync Method

Definition

Overloads

GetTestRunCodeCoverageAsync(Guid, Int32, Int32, Object, CancellationToken)

[Preview API] Get code coverage data for a test run

GetTestRunCodeCoverageAsync(String, Int32, Int32, Object, CancellationToken)

[Preview API] Get code coverage data for a test run

GetTestRunCodeCoverageAsync(Guid, Int32, Int32, Object, CancellationToken)

[Preview API] Get code coverage data for a test run

public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.TestManagement.WebApi.TestRunCoverage>> GetTestRunCodeCoverageAsync(Guid project, int runId, int flags, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetTestRunCodeCoverageAsync : Guid * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.TestManagement.WebApi.TestRunCoverage>>
override this.GetTestRunCodeCoverageAsync : Guid * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.TestManagement.WebApi.TestRunCoverage>>

Parameters

project
Guid

Project ID

runId
Int32

ID of the test run for which code coverage data needs to be fetched.

flags
Int32

Value of flags determine the level of code coverage details to be fetched. Flags are additive. Expected Values are 1 for Modules, 2 for Functions, 4 for BlockData.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

GetTestRunCodeCoverageAsync(String, Int32, Int32, Object, CancellationToken)

[Preview API] Get code coverage data for a test run

public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.TestManagement.WebApi.TestRunCoverage>> GetTestRunCodeCoverageAsync(string project, int runId, int flags, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetTestRunCodeCoverageAsync : string * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.TestManagement.WebApi.TestRunCoverage>>
override this.GetTestRunCodeCoverageAsync : string * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.TestManagement.WebApi.TestRunCoverage>>

Parameters

project
String

Project ID or project name

runId
Int32

ID of the test run for which code coverage data needs to be fetched.

flags
Int32

Value of flags determine the level of code coverage details to be fetched. Flags are additive. Expected Values are 1 for Modules, 2 for Functions, 4 for BlockData.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to