John Livermore
John Livermore

Reputation: 31313

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

Upvotes: 2

Views: 9348

Answers (2)

Thomas Koelle
Thomas Koelle

Reputation: 3742

For me it was something with access after I had deleted some folders.

Solution was to run Visual Studio as admin once.

Upvotes: 3

John Livermore
John Livermore

Reputation: 31313

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

enter image description here

Upvotes: 3

Related Questions