开发者

Measure code coverage with black box testing

Is there any way or any tool to measure code coverage during black box testing? I have to measure code coverage fr开发者_开发问答om a web application that runs on dot net source code.


There are several code coverage tools that may be of use to you for .NET; however running code coverage against a running application rather than against unit/automated tests is subject to issues (inconsistent reporting) due to user error and also problematic as you have to get your application to talk to the profiler. The commercial offerings will probably be better for you in this regard (as this is a feature they can sell).

You should really be running coverage against a test suite i.e. nunit/mstest - I personally find little benefit of using code coverage tools against an actually running application under a user's (tester/dev/real) control.

Commercial

NCover - IIS and NCover instructions

Semantic Designs

Open Source

PartCover - no support but you can use iisexpress (sequence and IL coverage).

OpenCover - support for integrating into IIS is in the pipeline; but you can use it against iisexpress (sequence and branch coverage).

All of the above, I believe, instrument the code using profiler API - to get code coverage. Also to examine the coverage against your code (.cs/.vb files) you will probably need the PDB files (as this is where all that IL offset -> source code line information resides).

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜