Visual Studio Unit Tests Missing During Run Tests in Current Context

... besides this is not enough. I just wrote it, decorated it with [TestMethod] and can see it right in front of me, and it compiles. It simply does not appear in the test results window when you run all test methods in the containing TestClass. Or when my cursor is on, which makes it the only test in the current context. In this case, all other tests in the class will be executed, but not new.

If I close the solution and open it again, it will start and appear in the test results.

Conversely, if I delete a test from TestClass, the test results window warns me that the test is missing ... well, no, I pulled it out and I did not miss it at all because I wanted it.

This did not happen yesterday. Previously, this happened in different projects / solutions.

Am I the only one? Is this just a bug in VS without the hope of correcting my intervention?

+3
source share
1 answer

womp pointed me in the right direction. Construction in release mode solved the problem. This is still a small problem, but better than closing and reopening the solution.

@womp, if you follow this question, send your suggestion as an answer and I will choose it.

: , Debug Release, Release. , , .

+5

Source: https://habr.com/ru/post/1710451/


All Articles