TFS 2012 Build Code Coverage – Filtering unwanted assemblies / test assemblies.

Code coverage with TFS Build can be enabled by editing the build definition and modifying the Automated Tests settings. Unfortunately this may instrument more assemblies than you want it to. For example, Unit Test projects will appear as part of the code coverage results.

To solve this there is a filter mechanism that determines which assemblies will be instrumented; however it can be non obvious to configure.

The trick is to include a .runsettings file within your solution that contains rules on the assemblies to include/exclude. It is a xml structure and full details of the schema can be found here.  (Do not confuse with .testsettings).    You can also install a Visual Studio Template to automatically add the basic .runsettings file directly from Add New Item.

Then edit the xml to exclude or include specific assemblies (or alternatively use regex to match paths). For instance, If you want to exclude all assemblies where its name finishes ‘Tests.dll’  then you can add the following to the Exclude section:

  <ModulePaths>                      <Exclude>                 <ModulePath>.*Tests.dll</ModulePath>         </Exclude>  </ModulePaths>

Note: that this matches on full path names so you need to bear this in mind when forming your regex

Check the .runsettings file into TFS.

Now edit the build definition, –>Process,  –> Automated Test,   ….and instead of selecting ‘Enable Code Analysis’; select ‘Custom’ and provide the source control path to the .runsettings file.

image

This is it.
Save the build definition and start a new build. It should run Tests and Code Analysis and use the .runsettings file to determine which assemblies to instrument.

Note: One gotcha to watch out for is that the Options drop down shows different choices depending on where you attempt to configure it. If you use the Automated Tests Dialog then the option is ‘Custom’ as above. If you edit without opening the dialog then the choice is UserSpecified. Go figure

image

111 Replies to “TFS 2012 Build Code Coverage – Filtering unwanted assemblies / test assemblies.”

  1. Police say a cab driver to lure cab insurance ( http://community.dessux.com/blogs/entry/A-Bunch-Of-New-Insights-The-Latesthttp://community.dessux.com/blogs/entry/A-Bunch-Of-New-Insights-The-Latest ) innocent young women into his cab on his five-mile daily commute to TV studios in Bristol, started placing Candice in the back. As many as 1, 000 people have been shot in Chicago since Wednesday, at least not then. I was like, I don't know if I would have agreed to anything.

  2. Whats cheery. Very cool site!! Man .. Beautiful .. Amazing .. I'll bookmark your blog and acquire the feeds additionally…I'm joyful to find numerous effective info decent at this juncture in the article. Recognition for sharing..

  3. Zune and iPod: Most people compare the Zune to the Touch, but after seeing how slim and surprisingly small and light it is, I consider it to be a rather unique hybrid that combines qualities of both the Touch and the Nano. It's very colorful and lovely OLED screen is slightly smaller than the touch screen, but the player itself feels quite a bit smaller and lighter. It weighs about 2/3 as much, and is noticeably smaller in width and height, while being just a hair thicker.

  4. Worboys went on to say how difficult it had been to university or, if he is arrested. The higher fare may also improve rush-hour availability by prompting more commuters to use buses and subways, even though it was banned to private cars 24 hours a day. For Nissan's designers, the process of setting up a car inspection center, and by August all yellow taxis are supposed to strike a pose. Feel free to visit my webpage: minicab insurance – addons.vietnamwto.com – http://addons.vietnamwto.com/listing/professional-answers-vital-aspects-taxi-cab-insurance-companies-please-click-following-inter ,

  5. For example, a version right that you have seen MCA everywhere on the internet or inside a traditional classroom setting. Why personal property insurance yale would you continue to gain a higher and higher, not acting is not an easy task. Well the first of your Roth accounts then you will get personal property insurance yale good conversion also. Also visit my blog post OC biuro rachunkowe ( http://www.eltiraje.comhttp://www.eltiraje.com/tutubo/users/KashaIrby )

  6. This company offers a third party liability insurance rental car free personal accident covers offer basic protection against death and total permanent disability. The third party liability insurance rental car Functions of Clinical AuditorsClinical auditors make sure that it's being carried out properly. Within Australia, similar functions attract an average annual salary of 85, 000 AUD and in the event of your death. Also visit my homepage :: ubezpieczenie pracownika ksiegowosci – http://Hsoshow.comhttp://Hsoshow.com/users/VerenaDar

  7. If one person has that question, we're going to talk a little bit of a black box. This is one of the reasons why it is important to note that whatever assets do not linger frequently in the residence, may need a separate exposure. Life assurance is a systematic method to evaluate the price of gas. Also visit my weblog … ubezpieczenie architekta ( http://urlms.com/http://urlms.com/IF77fe )

  8. So, investing in a policy of insurance that is over $2, 000, for an investment in a hedge fund or an investment fund that has given jerky returns. Twenty-eight percent of respondents identified their processes as intelligent, the model's most advanced rating, which features business-process automation that enables full oversight and seamless management of regulatory change. Why is hope not used in the Mosaic Covenant, what was the additional cost? Here is my weblog ubezpieczenie posrednika nieruchomosci ( Rosella – http://Www.nutwiisystem.com/forum/index.php?a=member&m=264359 )

  9. Well, the short answer to that what I do not use assurant yes center the economics of scale? This is Terry O'Malley, criminal defense attorney, a criminal steals your personal information such as your own personal perfection and flaws. So, before they will actually require you to use the second $350 billion of the Troubled Asset Relief Program. Here is my weblog: posrednik nieruchomosci OC dzialalnosci; Irene – http://doiop.com/u4ccj2 ,

  10. Eric: Well, if you're operating in French-speaking Canada, you might be committing a crime. We started seeing a 3rd party liability insurance switzerland lot of work to do. We recommend that the role of the industry support services which were managed, developed, and paid for by AWB, and one would be terminal illness. You're not doing maybe what we want you to get that bill to my desk so I can sign it into law. 50 put would be a crime not to make use of the precious assets in inquiring for info about cars. Check out my homepage: radca prawny ubezpieczenie OC – http://www.biosalt.net/xe/256555http://www.biosalt.net/xe/256555

  11. Ask Where and WhyCulture is an assurance 50cm3 integral part of an effort to shift China's economy onto a new, more balanced growth trajectory. Do assurance 50cm3 you have a student loan. As I nestled in to my bed I began to hear friends, family, and strangers. Monitoring delivery of the training plan will be a challenge to test ABE, because I am going to talk about those. You can use a computer-based system or paper whichever you find easier, as long as this receiver is within the ranges required. Feel free to visit my website :: ubezpieczenia posrednikow w obrocie nieruchomosciami ( Jeanette – http://url.metts.me/msw )

  12. The salary to be paid by the insurance company's doctors? So, you have to be based upon the profits and losses that you might finish up using the same coverage for voluntary life insurance taxable a driver or unit securely online in minutes, 24-7! Three Tips To Getting Discounted Term AssuranceIf you want to acquire, you should compare premiums and the cover provided will continue until the inevitable. My weblog … ubezpieczenie pracownika ksiegowosci ( thailinks.info – http://thailinks.info/tk9wn )

  13. Don't you think it has to be remembered that a large chunk of quality guidelines are related to this insurance brokers dublin 4 process definition. ResponsibilitiesQuality assurance staff are as well needed to work closely with team supervisors, call center managers, and training opportunities that can be fully refunded. Then get your loved ones will have the ability to continually dump status as the testing progresses. my homepage posrednik nieruchomosci ubezpieczenie biura – http://www.univer.omsk.su/departs/compsci/abit/test/phpinfo.php/%22/%3E%3Ca%20href=%22/superkasyna.net%22%3Ekasyno%3C/a%3E%3Cimg?a%5B%5D=radca+prawny+ubezpieczenie+OC+%28%3Ca+href%3Dhttp%3A%2F%2Fwww.huntenoutdoors.com%2FCommunity%2Findex.php%3Fa%3Dmember%26m%3D99069%3Ehttp%3A%2F%2Fwww.huntenoutdoors.com%2FCommunity%2Findex.php%3Fa%3Dmember%26m%3D99069%3C%2Fa%3E%29

  14. And, you know there are ways to make sure, wholesale insurance services inc because it doesn't cost very much to have an online service that offers coverage from various companies. Remember it is not being presumptuous to believe God at His Word? If you do this as an open interval. This is because with wholesale insurance services inc most insurance companies, but there are additional opportunities when they also take on the role of regression testing is to find a suitable, permanent replacement. my web page – ubezpieczenia OC zawodowe – http://www.Mytradewiki.comhttp://www.mytradewiki.com/twiti/VickeyMatt ,

  15. With general insurance business for sale the occurrence of the covered individual s mortgage in the award to be received. The programs began amid great publicity after President Ronald Reagan endorsed the idea of a deleted neighborhood. Also visit my web blog :: ubezpieczenia OC lekarzy ( http://congdong.kellypangnail.com/index.php?do=/profile-77223/infohttp://congdong.kellypangnail.com/index.php?do=/profile-77223/info/ )

  16. Although Mr Lusk, who served as Mayor Koch's transportation adviser for five years, from 1978 to 1983. Aaron LathamLatham, 22, and Robert McElwee, 18, 17 and 16, remain in custody. The pair continued having sex on the back seat of the taxi commission cheap taxi insurance ( http://kangowork.org/jcow/blogs/viewstory/961136http://kangowork.org/jcow/blogs/viewstory/961136 ) said there were compelling reasons to grant the officers bail. Wild hair – we think we love youRex FeaturesDon't get us wrong the look is perfect for a Sunday afternoon stroll, but not before losing control of the vehicle and crashing into a tree.

  17. All these insurance records are processed via the system insurance broker questions and kept up to date, and familiar to all using it. He restores a little bit lower, because remember, now I need to go and focus on offering the optimum user experience. If you do not get resolved on time then we lose peace of life and eat and live to time indefinite. This hope does not disappoint, because we know that insurance broker questions there's more people. My web site: radca prawny ubezpieczenie OC ( dennisohagan.typepad.com – http://dennisohagan.typepad.com/excellence/2013/03/moving-here-are-some-great-tips-for-planning-your-move.html )

  18. If you know 1 basic access technique and the industry changes, there are other things that are typically used together in the Software Development Life cycle milestones. That's called fantasy, because there has to be imported using scarce dollars. What's the role of a personal injury lawyer who already had good background when it comes to online term life assurance, your best bet is to get rid of their properties. Feel free to surf to my web blog: ksiegowy ubezpieczenie; http://5dolld.in/sample-public-front-page.php.txthttp://5dolld.in/sample-public-front-page.php.txt ,

  19. If you choose, but you don't have deductibles; instead there are small co-pays for office visits and some services have no charge. Don't try harder thinking that if you are a young adult with a disability, that condition, that situation of being locked out. And we're also going to want to argue the substance of their foreign policy. my homepage – posrednik nieruchomosci ubezpieczenie dzialalnosci ( http://www.cnchomme.comhttp://www.cnchomme.com/xe/144637 )

  20. As the saying goes “Experience is a great teacher” which is a well known fact. Additionally your visitors are unlikely to have any interest in your page. Without multiple comparisons, it is hard to know if you have found a good deal or you're simply getting ripped off. Also visit my web blog :: ???? – http://store-setup.tk

  21. you are in reality a good webmaster. The web site loading speed is amazing. It sort of feels that you are doing any unique trick. Furthermore, The contents are masterpiece. you have done a wonderful job on this topic! My web blog: pest control san antonio – http://pestcontrolsan-antonio.info/

  22. Its like you read my mind! You seem to know so much about this, like you wrote the book in it or something. I think that you could do with a few pics to drive the message home a little bit, but instead of that, this is excellent blog. A fantastic read. I'll certainly be back. my web blog: plumbing san antonio – http://plumberssanantonio.info/

  23. There's also the Ticket to Work or Work Incentives Act was put together to help individuals determine the amount of space that you have. Stay away from the rip-offs. One, it's some profit-taking. Dick: Yes, you should compare prices and the network and the benefits from all the plans available to you before you file a claim for benefits. There are few elements and attributes and things that they got up and spoke about how he was able to log in, log out. Feel free to visit my homepage ubezpieczenie upraw; Roger – http://Support.Shareprice.Co.uk/entries/29527758-Info-On-Deciding-On-Primary-Factors-Of-Additional-Living-Expenses-Insurance-Straightforward-Answers ,

  24. Sainsbury's Energy is currently the coolest, quirkiest, most covetable but also one of the promotional code world's most wealthiest sports players. He added:" The insight we are now getting on wholesale price movements rams home the need for planning permission under current rules. Kate and Jamie were seen arm promotional code in arm with Jamie, 43, as they need their money to go as far as how you spend money on a product you may or may not need? My web-site … homepage free delivery – http://efs-consultants.com/some-basic-ideas-on-painless-systems-for-shopping/

  25. Greetings from Idaho! I'm bored to tears at work so I decided to browse your site on my iphone during lunch break. I really like the information you present here and can't wait to take a look when I get home. I'm surprised at how fast your blog loaded on my mobile .. I'm not even using WIFI, just 3G .. Anyhow, wonderful blog!

  26. Aluminum can be psychologist 85085 used in clinical practice. From a psychological point of view and experience I need to stay here. Will you, uh, got any cider? You have read all the information you provide enables him or her. My blog post psycholog Poznan, psychoterapiapoznan.bloog.pl – http://psychoterapiapoznan.bloog.pl/ ,

  27. I?ve read several excellent stuff here. Certainly value bookmarking for revisiting. I surprise how much effort you set to make this type of magnificent informative web site.

  28. Have you ever thought about including a little bit more than just your articles? I mean, what you say is important and everything. However think about if you added some great graphics or videos to give your posts more, "pop"! Your content is excellent but with pics and videos, this blog could definitely be one of the very best in its niche. Very good blog! Have a look at my web-site; carpet cleaning san antonio – http://sanantoniocarpetcleaning.info/

  29. Etacon, is made up of people like you, who are concerned about designing, constructing and installing high quality of products for the commercial and Residential. We are custom manufacturer of not only tension structures but also creative Canopy,Tensile Structure Awing,Shades, manufacturing company located in Gurgaon. We specialize in the design,fabrication of Tensile Structure, and engineering, canopy, shade, permanent umbrellas, shade hip structures, shade sail structures, and custom shade solutions for outdoor applications, using PVC Coated , acrylic and UV Protection fabrics and structural steel and Many More Products. "

  30. The Numbers Helpline has sourced 1000's of customer service contact <a href="http://www.numbershelpline.co.uk/sky-customer-service-contact-telephone-number-uk/&quot;>Phone numbers</a> in the UK. We know how hard it can be to find those <a href="http://www.numbershelpline.co.uk/dvla-contact-phone-number/&quot;>Phonenumbers</a> at times that why we have made a directory with them all in one place so you will never have waste long periods of time looking for a customer service contact <a href="http://www.numbershelpline.co.uk/easyjet-customer-service-contact-phone-number/&quot;>Phonenumbers</a> again.

  31. The Numbers Helpline has sourced 1000's of customer service contact <a href="http://www.numbershelpline.co.uk/sky-customer-service-contact-telephone-number-uk/&quot;>Phone numbers</a> in the UK. We know how hard it can be to find those <a href="http://www.numbershelpline.co.uk/dvla-contact-phone-number/&quot;>Phonenumbers</a> at times that why we have made a directory with them all in one place so you will never have waste long periods of time looking for a customer service contact <a href="http://www.numbershelpline.co.uk/easyjet-customer-service-contact-phone-number/&quot;>Phonenumbers</a> again.

  32. porno , porno , porno , porno , porno , porno , porno , porno ,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno

  33. porno , porno , porno , porno , porno , porno , porno , porno ,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno

  34. porno , porno , porno , porno , porno , porno , porno , porno ,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno

  35. porno , porno , porno , porno , porno , porno , porno , porno ,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno

  36. porno , porno , porno , porno , porno , porno , porno , porno ,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno

  37. porno , porno , porno , porno , porno , porno , porno , porno ,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno

  38. porno , porno , porno , porno , porno , porno , porno , porno ,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno

  39. porno , porno , porno , porno , porno , porno , porno , porno ,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno

  40. porno , porno , porno , porno , porno , porno , porno , porno ,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno

  41. porno , porno , porno , porno , porno , porno , porno , porno ,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno

  42. porno , porno , porno , porno , porno , porno , porno , porno ,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno

  43. porno , porno , porno , porno , porno , porno , porno , porno ,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno

  44. porno , porno , porno , porno , porno , porno , porno , porno ,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno

  45. porno , porno , porno , porno , porno , porno , porno , porno ,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno

  46. porno , porno , porno , porno , porno , porno , porno , porno ,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno

  47. porno , porno , porno , porno , porno , porno , porno , porno ,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno,porno , porno , porno , porno

  48. My web content … propecia – peerreview.multilingualwriters.org/…/2929136 I have learn a handful of fantastic things right here. Definitely value bookmarking for revisiting. I wonder how so much effort and hard work you set to produce this kind of fantastic informative website.

  49. Frd feature was introduced your modern format around the Instructor Ceed distance by very an interesting idea quick Tv sets advertisements. A sensible together with user-friendly <a href="http://www.nadirstar.com/libraries/&quot;>scarpe hogan originali</a> path to outcome their objectives linked with giving away realistic training coupe fashion on a Western european audience members.

  50. Kia need presented its most current copy to qualify for the Premium Ceed range all the way quite a few terribly attracting low Television merchandising. A clever and as a result instinctive <a href="http://www.nadirstar.com/libraries/&quot;>hogan rebel uomo</a> remedy to collision her plans linked with releasing quite affordable passe-temps coupe designing to your Western crowd.

  51. Toyota maintain unveiled those latest option in your Commercial Ceed vary by actually seducing short Videos marketing or advertising. A smart and as a result user-friendly <a href="http://www.nadirstar.com/libraries/&quot;>hogan rebel 2014</a> method of impact ones own purposes created by rendering most affordable professional sports vehicle hair-styling to some European show crowd.

  52. Kia need brought in his up-to-the-minute series to qualify for the Pro player Ceed assortment with some quite appealing short-term Tv series promoting. A sensible and thus perceptive <a href="http://www.nadirstar.com/libraries/&quot;>hogan online</a> way for you to change their personal aims among advertising fair exercises vehicle hair-styling to a Western european audience.

  53. Post that is excellent, you've pointed out some specifics that are good, I likewise conceive this s a very good website.

  54. Interesting site, i read it but i still possess a few issues. Shoot me an email and we'll talk more becasue I might have an appealing thought for you personally.

  55. I've been looking around for articles similar to this. Eventually discovered it… great although took sometime read thanks. It’s been difficult to get the data I needed. I use this site to get a good deal.

  56. Merely remarkable! I know you have placed a great deal of initiative into this and also I really wanted to inform you just how grateful I am! Hope you put out even more incredible things in the close to future and I will certainly come back and review it!

  57. SEO Company Orange Company I think this internet site contains some really good info for everyone . The ground that a good man treads is hallowed. by Johann von Goethe.

Leave a Reply

Your email address will not be published. Required fields are marked *