[Ex] VS2010 UnitTest Coverage Analyzer

来源:互联网 发布:波士顿动力知乎 编辑:程序博客网 时间:2024/05/18 12:40

Project Description
Analyzing Visual Studio Unittest Coverage Exported XML file

Done features:
  • Load Visual Studio Code Coverage XML File (get this file by clicking "Export Results" in "Test->Windows->Code Coverage Results" in Visual Studio)
  • Import saved filter
  • Export current filter
  • Filtering with and, or and predifined functions:
    • StartsWith
    • NotStartsWith
    • EndsWith
    • NotEndsWith
    • Matches (the same to System.Text.RegularExpressions.Regex)
    • NotMatches (the same to System.Text.RegularExpressions.Regex)
    • Contains
    • NotContains
    • Equal
    • NotEqual

Each item has a separated filter to control the visibilities of the child items. In the current version you should write filter as XML directly by your self. The format is simple, at least for programmers.

For example, you want to see items that starts with "abc" or "def", and ends with "ghi", you should use
< and>
< or>
< StartsWith>abc</StartsWith>
< StartsWith>def</StartsWith>
< /or>
< EndsWith>ghi</EndsWith>
< /and>

A empty filter is represented by <true />

Last edited Mar 21, 2010 at 3:08 PM byvczh, version 5

转载自http://vczhtoolcoverage.codeplex.com/

0 0
原创粉丝点击