单元测试用于软件的最小可测试单元。
Unit testing is carried out on the smallest testable units of the software.
将会有两个测试单元来测试这种情况,并会立刻失败。
There's a couple of unit tests that test this condition and will fail as of right now.
图2显示了三次运行这个测试单元之后的产生的html页面。
Figure 2 shows the HTML page generated after three runs of the test suite.
每次测试单元的连续运行都将在这个表格的开始添加一个新的行。
Each successive run of the test suite will add a new row at the beginning of the table.
整个系统包括两个部分:教学单元、练习与测试单元。
The system consists of two part: the teaching part and the exercise part.
通过这种方式,我写的每一个测试被添加到测试单元中。
这可能是执行一项特殊的测试单元与引脚点定位的压痕。
This can be performed on a special test unit with the pin-point positioning of an indenter.
这是测试单元实现的常见错误,而不是单元与其客户机签定的契约。
It's a common mistake to test the implementation of the unit, rather than the contract the unit has with its clients. Let's say that the push method is implemented like so.
预算或者时间表如果没有覆盖整个测试单元,那个就会省略一些关键的用例。
Should the budget or schedule fail to cover the entire test suite, less critical use cases are omitted.
通过写测试单元而后再编码使其通过测试可以更加明确开发的目地。
By writing a test and then writing the code to make that test pass you have a much better idea of what the goal and purpose of your code is.
再者,它也有助于分析所给定的测试是否应该分解为更小的测试单元。
It can also be helpful to ask if any given test should be broken out into smaller tests.
论文提出了一种采用静态指令翻译技术的保护测试单元来实现保护测试。
So this paper suggests using protection test unit (PTU) to imply all the protection tests.
结果表明,不同长度的吸阻测试单元对测定普通成型纸滤棒的吸阻无明显的影响。
The experimental results showed that the PD test cells have no influenced on PDs of common filter rods.
一般情况下,这个构建应用软件和运行测试单元的过程都是自动的安排有序地每夜或者每周运行的工作。
Typically, the process of building the application and running the test suite is automated and scheduled as nightly or weekly jobs.
既然有一个客户,那么让构建配置自动化是一个不错的注意,它可以自动化使用的二进制,并自动运行测试单元。
Now that there is a customer, it is good to get automated builds configured to automate the packaging of the binaries that are shipped, and to automatically run the unit tests.
思考在Web页面核查Purify测试结果总结的简单,每次执行您的测试单元时这个页面就会更新。
Think about the simplicity of checking the Purify test results summary on a Web page that gets updated automatically every time your test suite is executed.
类似的,您可以将 Purify和您功能性和系统验证测试单元整合在一起,您可能每夜或者每个周都在运行它。
Similarly, you can integrate Purify with your functional and system verification test suite, which you might be running nightly or weekly.
本文从理论和实践方面探讨了矿用三相异步电机功率测量装置的设计及研制原理。并用实际测试单元电路实现。
In this paper, principle of design and study of three-phase induction motor power measuring device is discussed in theory and practice. And practical measuring unit circuit is used in the device.
您还需要修改您的测试系统来运行带有Purify的应用软件的测试单元,另外还要将它与正常应用软件进行运行。
You also need to modify your test system to run the test suite with the Purify'd application, in addition to running it with the normal application.
因此,我们采取利用RationalManualTester的方法,并将一个仅包含一个测试单元的测试文档与每一个已配置测试用例联合起来。
Therefore, we took the approach of using Rational Manual Tester, and we associated a test file that contained only the test unit within each configured test case.
例如,您可以将Purify与您的单元或者烟雾测试单元整合在一起,这些单元是开发人员必须在报告任何代码变更前必须运行的单元,并需要它们修复Purify所报告的所有新的存储错误。
For example, you can integrate Purify with your unit or smoke test suite that developers must run before checking in any code changes and require them to fix any new memory errors reported by Purify.
像往常那样,该类的单元测试应该捕获其每个方法的功能。
As always, the unit tests for that class should capture the functionality for each of its methods.
在早期,我们将应用程序交给顾客之前,我们的开发人员就利用 RAD 进行了最初的单元测试。
Early on, our developers used RAD for the initial unit testing before we turned the application over to the customer.
因为有某种测试,有时你会知道单元结束了。
Sometimes you know the unit is over because there is some kind of test.
许多开发人员使用称为后测试开发(TAD)的各种测试,你首先编写代码,然后编写单元测试。
Many developers use a variant of testing called test-after development (TAD), whereby you write the code and then write the unit tests.
不必每天运行所有自动化的单元测试,而只运行此特定交付或迭代需要通过的测试。
Instead of running all your automated unit tests every day, only run the ones that need to pass for this particular delivery or iteration.
什么是单元测试?
对被测试的单元自动生成测试。
运行单元测试。
单元测试能力。
应用推荐