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

前端 未结 18 1705
不知归路
不知归路 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:08

    I was making use of a public TestContext TestContext method to write to the test output and changed the scope to private. This made every test not discoverable. Changing it back to public helped.

提交回复
热议问题