I was working on .NET Core 6 test project. I upgraded my application from .NET Core 3.1 to .NET 6. Additionally, I updated the test project with some methods with some fixes and then ran the unit tests. In the output pane summary, it shows all test methods ran successfully however, the test result was not reflected in the Test view as passed, failed, and so on in Visual Studio 2022.
I tried rerunning the unit test several times. While running it built all related projects and then started running the tests however didn’t reflect the output result in the view.
Later on what I did is: I cleaned the whole project and then built it. After that re-ran tests then all the test results got reflected in the view as passed tests, failed, skipped, and so on.
The main point is after changing the code you need to clean and build the solution before running the unit tests. I hope it will be helpful for anyone having a similar kind of issue.