How to exclude Projects with names ending in “.Test” from my code coverage analysis in VS2012 Unit Tests

前端 未结 2 520
悲哀的现实
悲哀的现实 2020-12-28 13:30

My solution is set up with projects called \"ProjectName\" with \"ProjectName\".Tests containing my unit tests. I\'d like to exclude the test projects from the code coverage

2条回答
  •  半阙折子戏
    2020-12-28 14:14

    You can exclude it by excluding the project dll or by using project name itself also. E.g. -

    
     
      Fabrikam.Math.UnitTest.dll  
        
      
    
    

    This MSDN link is useful for it.

提交回复
热议问题