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

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

    If your code is CLI (managed c++) and your test class inherits from an abstract base class, make sure that your test class implements the base's pure virtual method. if you didn't implement it, you may see the "no tests found to run" message.

提交回复
热议问题