TestHttpClientBase.GetBuildCodeCoverageAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| GetBuildCodeCoverageAsync(Guid, Int32, Int32, Object, CancellationToken) |
[Preview API] Get code coverage data for a build. |
| GetBuildCodeCoverageAsync(String, Int32, Int32, Object, CancellationToken) |
[Preview API] Get code coverage data for a build. |
GetBuildCodeCoverageAsync(Guid, Int32, Int32, Object, CancellationToken)
[Preview API] Get code coverage data for a build.
public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.TestManagement.WebApi.BuildCoverage>> GetBuildCodeCoverageAsync(Guid project, int buildId, int flags, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetBuildCodeCoverageAsync : Guid * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.TestManagement.WebApi.BuildCoverage>>
override this.GetBuildCodeCoverageAsync : Guid * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.TestManagement.WebApi.BuildCoverage>>
Parameters
- project
- Guid
Project ID
- buildId
- Int32
ID of the build 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
GetBuildCodeCoverageAsync(String, Int32, Int32, Object, CancellationToken)
[Preview API] Get code coverage data for a build.
public virtual System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.TestManagement.WebApi.BuildCoverage>> GetBuildCodeCoverageAsync(string project, int buildId, int flags, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member GetBuildCodeCoverageAsync : string * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.TestManagement.WebApi.BuildCoverage>>
override this.GetBuildCodeCoverageAsync : string * int * int * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.List<Microsoft.TeamFoundation.TestManagement.WebApi.BuildCoverage>>
Parameters
- project
- String
Project ID or project name
- buildId
- Int32
ID of the build 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.