如果单元测试相当小并且只覆盖必要的功能需求的话,这种方法是可行的。
This is a feasible approach if the unit tests are reasonably small and cover only essential functional requirements.
测试覆盖工具通常可以很容易地添加到确定的单元测试过程中,而且结果可靠。
Test coverage tools are generally easy to add into an established unit testing process, and the results can be reassuring.
预算或者时间表如果没有覆盖整个测试单元,那个就会省略一些关键的用例。
Should the budget or schedule fail to cover the entire test suite, less critical use cases are omitted.
对单元测试范例而言,测试覆盖度量工具是一个有点奇怪的组成部分。
Test coverage measurement tools are a fantastic addition to the unit testing paradigm.
同步覆盖:在单元测试中极力推荐测量代码覆盖,但是在测试并行程序时使用它,代码覆盖容易产生误导。
Synchronization coverage: Measuring code coverage is a highly recommended practice in unit testing, but when it comes to concurrent programs, code coverage is misleading.
我主要从单元测试的角度来看代码覆盖。
I'll be looking at code coverage mainly from the standpoint of unit testing.
软件质量:单元测试进展、系统测试进展、测试覆盖率。
Software quality: Unit test progress, system test progress, test coverage.
从浏览器的角度看,自动化的web应用程序测试可能是扩大覆盖您的应用程序其他部分的现有单元测试的一种极好方法。
Automated web application testing from the browser perspective can be a great way to augment existing unit tests that cover other parts of your application.
另一方面,由于其宽广的范围,它们实现了比单元测试更广的代码覆盖率。
On the other hand, they achieve more code coverage than unit tests do because of their wide reach.
单元测试并不是惟一用得着代码覆盖工具的地方,但是代码覆盖工具主要还是用在这里。
Unit testing isn't the only scenario where code coverage tools are useful, but it's certainly a major use case.
代码覆盖工具使您可以将单元测试的符咒从“干净,绿色”上升为“干净,绿色,并且已覆盖”,这更有利于单元测试的有效性。
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.
此外,通过提供被注入对象的存根实现、改进测试覆盖率和代码质量,可轻松对编写良好的应用程序类执行单元测试。
Furthermore, well-written application classes can easily be unit tested by providing stub implementations of the injected objects, improving test coverage and code quality.
对单元测试的小的变化将要求我们重新检查代码以确保完全的覆盖率被维护。
Small changes to the unit tests would require us to audit the code again to ensure that full coverage had been maintained.
重点是,采用TFP 可以确保您在单元测试中实现相当大的代码覆盖率——可能远远超过我今天所达到的。
The important point is that adopting TFP guarantees that you will achieve a significant amount of code coverage in your unit tests -- probably far more than what you achieve today.
它也会是小的单元测试最容易获得高覆盖率的那个组件。
It is also going to be the one that is easiest to get high coverage for with small unit tests.
无论什么原因,您确定单元测试的覆盖率达到100%是不恰当的。
Whatever the reasons, you may decide that 100% coverage of unit tests is not appropriate, but you certainly expect it to be close to 100%.
它可以从一个参数化的单元测试中自动生成一个传统的单元测试集,而且有很好的代码覆盖率。
From a parameterized unit test, it automatically produces a traditional unit test suite with high code coverage.
除了这些组件之外,还有一些试验性的开发工具用于单元测试、代码覆盖率和浏览器中的自动化测试。
In addition to the components are experimental development tools for unit testing, code coverage, and automated tests inside the browser. New in this release are.
通过生成代码覆盖率的具体数值,Cobertura将单元测试从一种艺术转变为一门科学。
By producing hard Numbers for code coverage, Cobertura transforms unit testing from an art to a science.
使用CoverageBrowser的方式(图1),我们能够看到在单元测试中被包括的每一个文件(和目录)的代码覆盖测试的统计学的总结。
With the coverage Browser (Figure 1), we could see statistics summarizing the code coverage for each of the files (and directories) involved in the unit tests.
这个工具能够使我们浏览我们的单元测试;以两种方法进行代码覆盖测试:使用CoverageBrowser或者指定文件的Coverage Fileview方式。
This tool enabled us to look at our unit tests. code coverage in two ways: with the coverage Browser or the file-specific coverage Fileview.
当您应用程序的代码被单元测试所覆盖时,您可以修改代码而无需担心这些修改会破坏代码所实现的功能。
When your application code is covered by unit tests, you can modify the code without the fear that the modifications will break the functionality of your code.
记住,只发现一些单元测试名称的方法是不够的,因为方法可能有许多代码执行路径内,和他们中的一些人可能没有覆盖测试。
Keep in mind, that simply finding unit test names for some method is not enough, because method may have many code execution paths inside, and some of them could be not covered with tests.
测试的度量单位。例如,单元测试覆盖率是开发团队的一个测试指标。
A unit of measure for the testing. For example, unit test coverage is a test metric for the development team.
单元测试以及测试覆盖报表。
采用直接和随机测试方法,对浮点运算单元进行了测试和验证,代码覆盖率和功能覆盖率都达到了100%。
Tests and verifies the floating point unit in direct and random methods, with 100% functional coverage and code coverage.
例如,您的团队可能需要通过单元测试改进代码覆盖率,或缩短持续集成服务器上的生成时间。
For example, your team might need to improve code coverage by the unit tests or reduce the build time on the continuous integration server.
单元测试阶段结构覆盖测试往往要求语句覆盖率和分支覆盖率均达到100%。
In the unit test stage, it is often required that sentence coverage rate and branch coverage rate all up to 100% in the structure coverage test.
单元测试阶段结构覆盖测试往往要求语句覆盖率和分支覆盖率均达到100%。
In the unit test stage, it is often required that sentence coverage rate and branch coverage rate all up to 100% in the structure coverage test.
应用推荐