开发者

Showing Visual Studio 2008 Code Coverage and Code Metrics in CruiseControl.NET Build Report

开发者 https://www.devze.com 2023-01-13 09:11 出处:网络
I am setting up a fresh Continuous Integration environment for a .NET project. The basics are in place and I have also integrated the Visual Studio Code Analysis (FxCopCmd.exe) and Test Results (MSTes

I am setting up a fresh Continuous Integration environment for a .NET project. The basics are in place and I have also integrated the Visual Studio Code Analysis (FxCopCmd.exe) and Test Results (MSTest.exe).

How to do that?

a. Add an task for above mentioned tools, specify input dll and output xml/trx in the .build file of the project

b. Update ccnet.config, add blocks for those xml/trx files

c. Update dashboard.config, add block with fxcop-summary_1_36.xsl and MsTestSummary2008.xsl

Everything looks and works great. Now I also want to show Visual Studio 2008 Code Coverage and Code Metrics in CruiseControl.NET 1.5.7385.9 Build Report. Can somebody 开发者_如何学运维tell me how do I do that?


These links provides some clues:
- blogs.msdn.com/b/ms_joc/archive/2005/04/08/406608.aspx
- groups.google.com.ag/group/ccnet-user/browse_thread/thread/63c5b36a24f4366a


You can also use the tool NDepend integrated inside your continuous integration process to gather NCover, dotCover or Visual Studio coverage metrics. Disclaimer: I am one of the developers of the tool

Then you can write Code Rules over LINQ Queries concerning coverage data. Some Code Rules are proposed by default, this includes for example:

  • Types that used to be 100% covered but not anymore
  • From now, all types added or refactored should be 100% covered by tests
  • Complex methods partially covered by tests should be 100% covered
  • C.R.A.P method code metric
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号