As always, the unit tests for that class should capture the functionality for each of its methods.
像往常那样,该类的单元测试应该捕获其每个方法的功能。
Many developers use a variant of testing called test-after development (TAD), whereby you write the code and then write the unit tests.
许多开发人员使用称为后测试开发(TAD)的各种测试,你首先编写代码,然后编写单元测试。
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.
在单元测试中避免使用域对象。
Lastly, any defined unit tests are executed.
最后,执行确定的单元测试。
If you're not writing unit tests, you should be!
如果你不需要编写单元测试,也应该这样做!
Implement unit tests on existing implementation.
在现有实现上实现单元测试。
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 terms are often used to distinguish them from unit tests.
这两条术语经常用来区别于单元测试。
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.
未维护的或不正确的单元测试比根本没有进行单元测试更有害。
See my earlier Crossing borders article on unit tests for more details.
请参阅跨越边界 系列中以前关于单元测试的文章获得更多细节。
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.
编写组件测试要花更长的时间,因为它们比单元测试所涉及的东西要多。
You'd like any unit tests we write to be executed automatically as a part of the build.
您也许希望我们编写的所有单元测试都能够作为构建的一部分自动执行。
Unit tests are so important that you should write your tests before you write the code.
由于单元测试是如此重要,所以您应该先编写测试,再编写代码。
The Deployment Configuration Smoke tests should be used as early as developer unit tests.
部署配置冒烟测试应该在开发单元测试的时候就执行。
Developers are generally responsible for creating unit tests and sometimes functional tests.
开发人员通常负责创建单元测试,有时负责功能测试。
Unit tests were always performed (and results logged) before code was distributed for review.
单元测试总是在代码被分发检查之前被执行。
For every code module, you should have a set of unit tests that exercises each of its methods.
对于每个代码模块,你应当有测试其所有方法的一组单位测试。
For every code module, you should have a set of unit tests that exercises each of its methods.
对于每个代码模块,你应当有测试其所有方法的一组单位测试。
应用推荐