Search code examples
visual-studiovisual-studio-2022visual-studio-test-runner

Visual Studio 2022 Test Explorer doesn't show any tests with a File/New "Test" project


Using the latest VS...

enter image description here

I created a brand new project with this template...

enter image description here

Everything compiles fine, but the default test that is created doesn't show up in Test Explorer. I hit the green "play all" button and the output window shows 1 test found, but "No tests found to run.".

enter image description here

Is this a known issue? Or what do I need to do to make Test Explorer show all my tests?

I can right-click/Run the test with no issues. But nothing shows in Test Explorer...

enter image description here

enter image description here


Solution

  • The filters were set to show failed tests only. Once I fixed that, the test appeared.

    enter image description here