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

前端 未结 2 499
悲哀的现实
悲哀的现实 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:02

    There is a connection with the period issue as it was mentioned here. If you change the exclude section to this

    .*tests.dll
    .*Tests.dll
    

    or this

    .*\.tests\..*
    .*\.Tests\..*
    

    it'll work

提交回复
热议问题