Summary
The NuGet package Microsoft.TeamFoundationServer.Client contains Microsoft.VisualStudio.Services.TestResults.WebApi.dll which contains TestResultsHttpClient (it's public API). This class contains all the important pieces for publishing test results. There may be other classes that we could make a good use of.
Proposed Feature
This is still "brainstorming" phase, nothing concrete yet. But:
- We could provide an extension to publish test results as tests are running, without the need for TRX, and without needing to wait to the end of the test run.
- We could query history on test failures, and maybe publish the test in a special way to indicate it's flaky, and how many times it failed over a month, etc.
Side note: See Roslyn for how to do the authentication. It's simply just reading SYSTEM_ACCESSTOKEN and SYSTEM_COLLECTIONURI env variables and use them to create VssConnection.
We could also see if there is any test plan related stuff in this package and whether we could use this package to support this in MTP.
Summary
The NuGet package
Microsoft.TeamFoundationServer.ClientcontainsMicrosoft.VisualStudio.Services.TestResults.WebApi.dllwhich containsTestResultsHttpClient(it's public API). This class contains all the important pieces for publishing test results. There may be other classes that we could make a good use of.Proposed Feature
This is still "brainstorming" phase, nothing concrete yet. But:
Side note: See Roslyn for how to do the authentication. It's simply just reading
SYSTEM_ACCESSTOKENandSYSTEM_COLLECTIONURIenv variables and use them to createVssConnection.We could also see if there is any test plan related stuff in this package and whether we could use this package to support this in MTP.