How to re-discover unit tests?
Answered
Rider has lost most of my unit tests. If I open a source file with tests, it adds them to the list, but how can I get Rider to scan all files for tests? I have only about 1/5th of my tests shown. The option "refresh unit test tree" does nothing. Restarting Rider has not helped. My only option seems to be to manually open every test file in my solution?
Note I did not have this problem before upgrading to 2022.3.2
Please sign in to leave a comment.
Rebuilding the solution seems to have fixed this.
Hello Dave Cousineau!
You are right, the best option to re-discover tests is to rebuild the solution. More information about test discovery is available in our documentation: Discover unit tests in solution