为此,我们求助于代码覆盖的使用。
GCov代码覆盖显示和注释。
我主要从单元测试的角度来看代码覆盖。
I'll be looking at code coverage mainly from the standpoint of unit testing.
可视化例子1:代码覆盖。
背后的思想在最初设想代码覆盖时就出现了。
The ideas behind this have been around since code coverage was first conceived.
监测什么代码执行测量代码覆盖范围的工作?
PureCoverage进行代码覆盖的分析。
代码覆盖范围(coverage)也会被考量。
本章作者总结了一个简单的代码覆盖工具。
The chapter concludes with code for a simple code coverage tool.
代码覆盖工具为您提供了一种度量测试完整性的方法。
Code coverage tools give you one way to measure test completeness.
代码覆盖是一种查看一套测试覆盖了多少代码的方法。
Code coverage is a way of seeing how much code is covered by a set of tests.
现在所使用的新工具为内核提供了代码覆盖分析的功能。
New tools are now being used that instrument the kernel in such a way that code coverage analysis can be performed.
重要运行时参数的度量,包括内存使用、性能和代码覆盖。
Measurement of vital runtime parameters, including memory usage, performance, and code coverage.
源代码覆盖分析的purecoverage。
对代码进行测试的下一步是用代码覆盖工具对测试进行度量。
The next step beyond testing code is measuring the tests with a code coverage tool.
那么,代码覆盖与classworking有什么关系呢?
其他的视图帮助使用者定位在配置运行期间,代码覆盖的间隔。
Other views help users locate gaps in code coverage during profiling runs.
以上测试是作为简单的JUnit测试运行的,没有代码覆盖。
The test above was run as a simple JUnit test without code coverage.
图7:RAD修饰词源码视图显示测试代码覆盖论题。
Figure 7: RAD Annotated Source view revealing test coverage issues.
不幸的是,代码覆盖测试只能确保您想要测试的所有代码得到执行。
Unfortunately, code coverage testing only makes sure you're executing all the code you'd like to test.
您还可以通过各种外部工具来生成跟踪,比如探查器和代码覆盖工具。
You can also generate a trace through external tools such as profilers and code-coverage tools.
这些步骤还能使我在开发期间跟踪代码覆盖情况,从而构建更加丰富的规范。
The small steps also let me keep up with my code coverage as I develop, and build a richer specification.
生成分部类,用于书写自定义代码,以避免被自动生成的代码覆盖。
Generates partial classes where custom code can be written and won't be overwritten.
Gretel超越大多数其他代码覆盖工具的地方是它对增量覆盖检查的支持。
Where Gretel goes beyond most other code coverage tools is in its support of incremental coverage checking.
检查传出耦合的关系数据,并将其与代码覆盖相关联,会促进作出更明智的决策。
Examining efferent coupling's relationship data and relating it to code coverage facilitates smarter decision making.
正如您看到的,使用一个代码覆盖工具可以揭露重要的没有相应测试案例的代码。
As you can see, using a code coverage tool can uncover important code that doesn't have a corresponding test case.
它可以发现其他工具不能发现的代码覆盖不足,这会直接变成发现和修复bug。
It finds gaps in code coverage no other tool can, which translates directly into finding and fixing bugs.
如果我们的测试是为了实现较好的代码覆盖,那么必须能够控制人工任务的结果。
If our tests are to achieve good code coverage, then we must be able to control the result of human tasks. Hence, the need for the following requirement.
Jaxen有一个基于JUnit的测试套件,而且这个套件的代码覆盖并不完善。
Jaxen has a JUnit-based test suite, though the suite has less-than-perfect coverage.
与Clover这类传统的代码覆盖工具不同,Jester不去查看报告了哪行代码。
Unlike a traditional code coverage tool such as Clover, Jester doesn't watch which lines of code have been executed.
应用推荐