You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Event that fires when the {@link testResults} array is updated.
*/
exportconstonDidChangeTestResults: Event<void>;
The intention is for this API to be useful if, for example:
An extension can publishTestResults that it reads test results off the disk
An extension can publishTestResults if it detects that tests results were run outside of the TestProvider.runTests API
An extension can react to test passes or failures
Note that test results are associated with the "living" test items through their ID, so if you publish a test result for a test that a provider isn't providing anywhere, you won't see any UI for it.
Please build an extension to give these APIs and shot and let me know how it goes! For example you might build an extension that pops a toast notification if tests fail or lets the user open test results from a well-known format off disk. Let me know if you run into any problems or ambiguities while doing so.
Refs: #107467
Complexity: 5
Authors: @connor4312
Create Issue
As part of testing, we have an API that allows extensions to read and publish test results. Namely:
vscode/src/vs/vscode.proposed.d.ts
Lines 2157 to 2182 in eff172b
The intention is for this API to be useful if, for example:
publishTestResults
that it reads test results off the diskpublishTestResults
if it detects that tests results were run outside of theTestProvider.runTests
APINote that test results are associated with the "living" test items through their ID, so if you publish a test result for a test that a provider isn't providing anywhere, you won't see any UI for it.
Please build an extension to give these APIs and shot and let me know how it goes! For example you might build an extension that pops a toast notification if tests fail or lets the user open test results from a well-known format off disk. Let me know if you run into any problems or ambiguities while doing so.
You might find the sample test provider useful as a foundation to build against, or the more complex selfhost test provider if you feel ambitious.
The text was updated successfully, but these errors were encountered: