进行代码覆盖率分析的主要步骤为
To perform code coverage analysis of a test suite, follow these steps
代码覆盖率就是最重要的测试指标之一。
One of the most critical measurements for testing is code coverage.
有许多可用的工具可以提供代码覆盖率。
There are a number of tools available to provide code coverage metrics.
Coverlipse:测量代码覆盖率。
发现的问题没有被测试过:代码覆盖率问题。
Problem has been found for which no test exists: code coverage.
结果就是代码覆盖率降低了产品的生命。
The result is that code coverage declines over the life of the product.
并不总是可以得到完美的、100%的代码覆盖率。
Perfect, 100 percent code coverage is not always attainable.
高代码覆盖率与高质量之间没有必然联系。
这时代码覆盖率分析就有用了,它可以扩展您的视野。
When code coverage analysis is used at such a juncture, the results are frequently eye opening.
在最高层次上开始测试能够以最快速度获得代码覆盖率。
The fastest gains in code coverage come by starting your tests at the highest level.
当您评价代码覆盖率时,原始数据的数量会非常的巨大。
When you measure code coverage, the amount of raw data can be overwhelming.
可以轻松对任何目标测试进行调试或执行代码覆盖率测试。
Allows you to easily debug or run code coverage on any target tests.
他在进行重构时信心满满,因为项目拥有广泛的代码覆盖率。
He did that with serene confidence because the project had comprehensive code coverage.
当采用 TFP 时,可以实现 100% 的代码覆盖率。
When you adopt TFP, you can achieve 100 percent code coverage.
另一方面,由于其宽广的范围,它们实现了比单元测试更广的代码覆盖率。
On the other hand, they achieve more code coverage than unit tests do because of their wide reach.
而另一方面,就架构性代码覆盖率来讲,系统测试是一件极为划算的事情。
On the other hand, they offer quite a bit of bang for the buck, so to speak, in terms of architectural code coverage.
运行时,这些函数调用把应用代码覆盖率的相关信息发送给一个单独的工具。
At runtime, these function calls send information on the application's code coverage to a separate tool.
代码覆盖率报告指示100%的覆盖率,但我们知道这是一个误导。
The code coverage report indicates 100 percent coverage; however, we know this is misleading.
代码覆盖率分析可以针对您的测试用例的有效性给出有价值的反馈。
The analysis gives you invaluable feedback about the effectiveness of the test suite that you were relying on.
如果您的项目的代码覆盖率达到了100%,那么可以安全地重构代码。
If you have 100 percent code coverage on your project, you can refactor your code with impunity.
在这里,有趣的是我们可以使用圈复杂度而不是使用代码覆盖率来找出这个缺陷。
What's interesting here is that we were able to spot this defect using cyclomatic complexity rather than code coverage.
您也可以在第4步之前使用一个代码覆盖率工具,但是我宁愿您手动完成前面的步骤。
You could use a code coverage tool before step 4, but I prefer to do the preceding steps manually.
正如您所见,使用CoverlipseEclipse插件可以更快地确定代码覆盖率。
As you an see, you can determine code coverage much more quickly using the Coverlipse Eclipse plugin.
代码覆盖率回答了一个更要的问题:“在测试时,我们的代码有多少被执行到了?”
It answers an important question: "How much of our code is being exercised when we test?"
注意在每一个服务器实例的后面必须有一个指南,这些服务器实例会执行一个代码覆盖率程序。
Note that the instructions must be followed on each server instance that is executing a code coverage-enabled application.
它可以从一个参数化的单元测试中自动生成一个传统的单元测试集,而且有很好的代码覆盖率。
From a parameterized unit test, it automatically produces a traditional unit test suite with high code coverage.
通过生成代码覆盖率的具体数值,Cobertura将单元测试从一种艺术转变为一门科学。
By producing hard Numbers for code coverage, Cobertura transforms unit testing from an art to a science.
代码覆盖率是软件测试的一个重要方面,对于一个构件的总体系统测试来说可能是一个基本的参数。
Code coverage is an important aspect of software testing, and can be considered fundamental to the overall system testing of a component.
我认为测试是软件开发的一个基本方面,代码覆盖率则是衡量一个人测试质量的关键工具。
I consider testing an essential aspect of software development, and code coverage is a key tool for measuring the quality of one's testing.
接下来,我将运行一个代码覆盖率工具,比如Cobertura,并将获得如图1中所示的报告。
Next, I run a code coverage tool, such as Cobertura, and get the report shown in Figure 1.
应用推荐