有谁知道如何以编程方式(使用 TFS API)确定哪些二进制文件被设置为作为 TFS 构建的一部分进行检测?
例如,在具有代码覆盖率的 TFS 上运行构建后,它会在输出中显示:
...
-> 2 binaries instrumented - 62% of all code blocks covered
SomeAssembly.dll - 392 blocks covered, 368 blocks not covered
SomeExe.exe - 584 blocks covered, 241 blocks not covered
...
我想以编程方式确定“SomeAssembly.dll”和“SomeExe.exe”是作为该构建的一部分进行检测的二进制文件。
我已经通过 TFS API 检索了团队项目,但不确定是否可以让我到达我想去的地方:
TfsTeamProjectCollection collection = new TfsTeamProjectCollection(new Uri(versionControlURIRoot + defaultProjectDirectory))
var testManagementService = collection.GetService<ITestManagementService>();
ITestManagementTeamProject teamProject = testManagementService.GetTeamProject(projectName);