Test Explorer (VS) shows '<Unknown project>'

  1. Close Visual Studio.
  2. Delete the *.testlog files in: solutionfolder\.vs\solution name\v16\TestStore\number.

I faced the same issue right now. A cleanup helped. As I had cleanup issues with VS in the last time (some DB-lock prevents a real cleanup to happen), my working cleanup was this way:

  1. Close VS.
  2. Git Bash in solution folder: git clean -xfd

Probably it helps.


Neither of these solutions worked for me. I was able to get the test explorer working by closing visual studio and deleting the ".vs" folder. Then reopen the solution and let it rebuild it.