The problem with VS 2015. Since yesterday, the time to perform 350 unit tests of the project on my machine has increased from 2 to 40 minutes. The execution time increased for each test separately. However, other developers do not experience such a problem. From this I conclude that the problem is specifically in the VS configuration in my workplace.
Has anyone already experienced this and knows how to solve it?

  • 3
    Too little information to give any advice. Is it in one project or in each? Did something change in the studio and the OS itself (updates?), Take fresh commits from TFS and what did they get there? Have they checked, maybe your hard drive has started to die, or does disk space come to an end? Have the running programs been checked, can something be done in the background? - AK ♦
  • 2
    @Sergej: For the time being, your question is: “My code began to run slower, what exactly has changed, I don’t know, guess what the problem is.” And the answer to such questions is always “How do we know? Profile, compare with the quick option. " - VladD
  • Checked on another project - the same problem. There is enough disk space (> 30 GB). There are no database queries. Network resources are not involved in the tests. The load on the processor during the execution of tests is 25%, the use of RAM is 80%. Otherwise, everything works fine. - Sergej Pelagejcev
  • In 2015, one month ago, the debugger stopped working at the visual studio (trial version, more than three weeks left until the end of the term), the problem was solved by the studio authorization. I have no good words about them. Are there any problems in previous studios? - Alexander Muksimov
  • I don’t know about previous studios. I only have VS 2015 installed. Judging by the protocol the day before yesterday, 2 updates came to the .NET Framework. - Sergej Pelagejcev

1 answer 1

After analyzing the code of several unit tests in the debugger, I realized that they were “slowing down” calls to methods from the Moq library. The problem was solved simply. After the Moq software package was updated by me on my machine to the current version, the tests began to be processed even faster than before - in 15 seconds.

Thank you all and have a nice day.

  • Mark your answer as correct. - andreycha