MSTest: No tests are run because no tests are loaded or the selected tests are disabled

前端 未结 18 1731
不知归路
不知归路 2020-12-24 11:55

I have a c# solution with the following structure:

mySolution
  myProject
  myProject.MSTests
    References
      Microsoft.VisualStudio.QualityTools.UnitTe         


        
18条回答
  •  难免孤独
    2020-12-24 12:02

    Had this same issue but reading over the previous answers, everything looked good.

    In my case, I had just run the test suite made a small change, built the solution and tried to run the test. No go. I tried building a couple more times and looking for problems other people had tried. Still no go.

    I hit enter in one of my test methods to add a new and hit F6 to build the solution and clicked run Unit Tests.

    Bingo! Everything ran smoothly.

提交回复
热议问题