As always, the unit tests for that class should capture the functionality for each of its methods.
像往常那样,该类的单元测试应该捕获其每个方法的功能。
Instead of running all your automated unit tests every day, only run the ones that need to pass for this particular delivery or iteration.
不必每天运行所有自动化的单元测试,而只运行此特定交付或迭代需要通过的测试。
Regression and unit tests are included.
包括了回归测试和单元测试。
自动化单元测试。
Avoid using domain objects in unit tests.
在单元测试中避免使用域对象。
Implement unit tests on existing implementation.
在现有实现上实现单元测试。
Recall that Rails unit tests handle only models.
回忆一下就可以知道,Rails单元测试只处理模型。
Avoid using domain-specific objects in unit tests.
避免在单元测试中使用特定于域的对象。
I can't integrate any code with failing unit tests.
如果单元测试失败,我就无法整合任何代码。
Functional tests and unit tests are vastly different.
功能测试与单元测试相差甚远。
I assign homework involving the writing of unit tests.
我布置了关于编写单元测试的作业。
The unit tests to be developed should test the following.
要开发的单元测试应该测试以下内容。
Now write the corresponding unit tests, shown in Listing 18
现在编写相应的单元测试,如清单18 所示
I ran my unit tests and watched a raft of error messages float by.
我开始运行我的单元测试,然后看见一连串错误消息跳将出来。
Sometimes errors occur in unit tests that aren't thrown by assertions.
有时,发生在单元测试中的错误不是由断言抛出的。
Unmaintained or incorrect unit tests are worse than no testing at all.
未维护的或不正确的单元测试比根本没有进行单元测试更有害。
The functional tests will expose problems that your unit tests are missing.
功能测试将暴露单元测试遗漏的问题。
Put the unit tests in the same package as the associated classes being tested.
将单元测试与被测试的相关类放在同一个包内。
Agile processes rely on frequent refactoring and unit tests to improve designs.
敏捷流程依赖频繁的重构和单位测试来改进设计。
If there are no obvious problems and you can run the unit tests, you're good to go.
如果没有明显的问题,并且能够运行单元测试,那么即可放心地继续下去了。
Component tests take longer to write because they're more involved than unit tests.
编写组件测试要花更长的时间,因为它们比单元测试所涉及的东西要多。
Did you procrastinate yesterday and skip writing the unit tests for your new features?
你拖延时间并忽略了新特性的单元测试吗?
You'd like any unit tests we write to be executed automatically as a part of the build.
您也许希望我们编写的所有单元测试都能够作为构建的一部分自动执行。
Because unit tests execute so quickly, they are easy to run often as a part of a build.
由于单元测试执行得相当快,很容易将它们作为构建的一部分经常运行。
What is really cool, though, is that the unit tests function as a test suite for vendors.
但是,真正“炫酷”的地方在于这些单元测试的作用是作为面向供应商的一个测试套件。
In the best scenario, unit tests are actually built before the code that is to be tested.
在最佳场景中,单元测试实际上是先于待测试的代码而构建的。
The Deployment Configuration Smoke tests should be used as early as developer unit tests.
部署配置冒烟测试应该在开发单元测试的时候就执行。
The same applies for integration tests as for unit tests in regard to guidelines and tools.
关于指南和工具,应用于集成测试与单元测试是一样的。
A developer cannot check code into the source code repository until all the unit tests pass.
开发人员只有在通过所有单元测试后才可以将代码检入到源代码资源库中。
Developers are generally responsible for creating unit tests and sometimes functional tests.
开发人员通常负责创建单元测试,有时负责功能测试。
应用推荐