[wasm][tests] Identify tests that throw PNSE #313
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
[PNSE] System.Net.Http.Functional.Tests.SocketsHttpHandler_Connect_Test.ConnectMethod_Success
And the test results show:
Tests run: 1774, Errors: 0, Failures: 13, PNSE: 1226, Skipped: 71. Time: 10.198805s
Here
PNSE:
shows the count for tests that throw PNSE.And
Failures
do not include PNSE failures.In the xml report, such tests are shown with
result="PNSE"
:.. instead of
result="Fail"
.To detect these, we look for exception-type==PNSE .
This still misses cases where the exception might be wrapped in others.
We could check the messages xml element to get those too, but that might give us false positives.
Eg problem case:
System.Net.Http.Functional.Tests.HttpClientTest.CancelAllPending_AllPendingOperationsCanceled
- this uses
Assert.All
, so you get bunch of exceptions wrapped inXunit.Sdk.AllException
.