本章作者总结了一个简单的代码覆盖工具。
The chapter concludes with code for a simple code coverage tool.
代码覆盖工具为您提供了一种度量测试完整性的方法。
Code coverage tools give you one way to measure test completeness.
NET代码覆盖工具。
对代码进行测试的下一步是用代码覆盖工具对测试进行度量。
The next step beyond testing code is measuring the tests with a code coverage tool.
现在,不要误解我的意思:并不是说使用测试覆盖工具是愚蠢的。
Now, don't get me wrong: There's nothing foolish about using test coverage tools.
您还可以通过各种外部工具来生成跟踪,比如探查器和代码覆盖工具。
You can also generate a trace through external tools such as profilers and code-coverage tools.
测试覆盖工具通常可以很容易地添加到确定的单元测试过程中,而且结果可靠。
Test coverage tools are generally easy to add into an established unit testing process, and the results can be reassuring.
Gretel超越大多数其他代码覆盖工具的地方是它对增量覆盖检查的支持。
Where Gretel goes beyond most other code coverage tools is in its support of incremental coverage checking.
正如您看到的,使用一个代码覆盖工具可以揭露重要的没有相应测试案例的代码。
As you can see, using a code coverage tool can uncover important code that doesn't have a corresponding test case.
与Clover这类传统的代码覆盖工具不同,Jester不去查看报告了哪行代码。
Unlike a traditional code coverage tool such as Clover, Jester doesn't watch which lines of code have been executed.
与NCover非常相似,PartCover是针对。NET的一个开源代码覆盖工具。
PartCover is an open source code coverage tool for.net very similar to NCover.
单元测试并不是惟一用得着代码覆盖工具的地方,但是代码覆盖工具主要还是用在这里。
Unit testing isn't the only scenario where code coverage tools are useful, but it's certainly a major use case.
但是,用Eclipse内的代码覆盖工具运行RMock测试时会带来一些问题(参见表1)。
There are some issues, however, when it comes to running RMock tests with code coverage inside Eclipse (see Table 1).
当测试材料遇到这些钩子时,代码覆盖工具使用这些钩子来记录每个测试在其执行时所经历的过程。
As the test material is run against it, the code coverage tool USES these hooks to log the journey each test takes as it executes.
知道这些以后,开发人员、管理人员以及QA专业人员就可以在真正需要的地方使用测试覆盖工具。
Knowing this, developers, managers, and QA professionals can use test coverage tools where they really count — namely for three common scenarios.
代码覆盖工具可报告测试覆盖率——以行覆盖或分支覆盖形式表示——它表示测试运行时所涉及的代码量。
A code coverage tool reports test coverage — either in the form of line or branch coverage — that represents the amount of code that is being touched when a test is run.
我不止一次地说:您可以(而且应该)使用测试覆盖工具作为您的测试过程的一部分。但是不要被覆盖报告所愚弄。
I'll say it one more time: you can (and should) use test coverage tools as part of your testing process, but don't be fooled by the coverage report.
您可以用大多数代码覆盖工具(例如,cobertura或eclemma)来运行本文中列出的任何一个测试。
You can run any of the tests listed in this article with most code coverage tools (for example, Cobertura or EclEmma).
测试覆盖工具旨在修改代码,使之在执行期间留下一条“面包屑”踪迹(这也是我在这一期关注的工具的名称由来)。
Test coverage tools modify your code to leave behind a trail of "bread crumbs" during execution (hence the names of the tools I'm targeting in this column).
覆盖工具背后的动机向您(作为开发员或者测试员)提供了关于代码的一系列观点,这些代码在一系列的测试之中会得到检查。
The motivation behind coverage tooling is simply to give you (as a developer or tester) more insight into the areas of code that are being exercised by a set of test cases.
代码覆盖工具使您可以将单元测试的符咒从“干净,绿色”上升为“干净,绿色,并且已覆盖”,这更有利于单元测试的有效性。
Code coverage tools let you expand the unit testing mantra of "clean and green" to "clean, green, and covered," with real benefits to the effectiveness of your unit tests.
TestNG测试的代码覆盖(改善代码质量论坛,2006年3月):请参与关于在TestNG中集成代码覆盖工具的讨论。
Code coverage of TestNG tests (Improve your code quality forum, March 2006) : Join the discussion on integrating code coverage tools with TestNG.
覆盖工具对于测量代码级别的代码覆盖来说并没有任何用处,代码质量工具对于自动检测内存泄露和执行问题来说也没有任何用处。
There is no use of a coverage tool to measure the code-level code coverage, nor is there use of code quality tools to automate memory leak detection and performance issues.
这些物品必须覆盖整个世界,从一个烹饪锅到一艘金色的帆船,从石器时代的工具到一张信用卡。
The objects had to cover the whole world, from a cooking pot to a golden galleon, from a tool in the Stone Age to a credit card.
此外,有些工具会报告分支覆盖。
性能工具提供正确的诊断信息,覆盖具体的和整个的设计需求。
The performance tool supplied the right diagnostic information to cover the specific and overall design requirements.
对单元测试范例而言,测试覆盖度量工具是一个有点奇怪的组成部分。
Test coverage measurement tools are a fantastic addition to the unit testing paradigm.
这个工具通过允许在运行时覆盖标注数据,试图克服这些问题。
This tool tries to overcome these issues by allowing annotation data to be overridden at run time.
现在所使用的新工具为内核提供了代码覆盖分析的功能。
New tools are now being used that instrument the kernel in such a way that code coverage analysis can be performed.
现在所使用的新工具为内核提供了代码覆盖分析的功能。
New tools are now being used that instrument the kernel in such a way that code coverage analysis can be performed.
应用推荐