单元测试的目标就是检验最小单元的代码是否像预期一样发挥作用。
The goal of unit testing is to verify whether the smallest unit of code behaves the way it is expected to.
然而即使是那些保留了自有研发单元的公司,也日益意识到有价值的想法能从任何地方萌芽。
Yet even companies that maintain their own powerhouse research-and-development units are increasingly aware that valuable ideas can sprout anywhere.
财务模型:尽管激烈的竞争正导致单个产品单元的成本和价格下浮,但与新产品相关的复杂性和成本却在持续升高。
Financial Models: Although increased competitive pressures are causing individual product unit costs and prices to fall, the complexity and cost associated with new product solutions continue to grow.
企业服务总线(EnterpriseService Bus,ESB)将事件驱动的方法和面向服务的方法结合使用,以简化业务单元的集成,从而在异类平台和环境间建立联系。
An Enterprise service bus (ESB) combines event-driven and service oriented approaches to simplify integration of business units, bridging heterogeneous platforms and environments.
马修,我希望你能在周三的课上谈谈这一天文学单元。
Mathew, I'd love for you to talk about this astronomy unit in class on Wednesday.
组织图是洞察如何将人员组织为部门或单元和角色的绝佳方法。
They're a great way to get insight into how people are organized into departments or units and roles.
这个API(从NUnit借鉴而来)非常简单易读,我认为这在单元测试中是非常重要的。
This API (again, borrowed from NUnit) is very easy and intuitive to read, which I think is a very important part of unit testing.
通过生成代码覆盖率的具体数值,Cobertura将单元测试从一种艺术转变为一门科学。
By producing hard Numbers for code coverage, Cobertura transforms unit testing from an art to a science.
我为我的任务库创建了一些单元测试,以保证任务可以被正确地创建出来,并且以测试驱动重构迈开第一步。
I created some unit tests for my task library to ensure tasks were being created properly and begun some test-driven refactoring.
军队集结、英勇抵抗、对手间的争斗,此类叙事单元不断重复出现,只有角色和场景发生变化。
The same narrative units—gathering armies, heroic shields, challenges between rivals—pop up again and again, only with different characters and different circumstances.
我开始运行我的单元测试,然后看见一连串错误消息跳将出来。
I ran my unit tests and watched a raft of error messages float by.
这种方法要求我为添加的每个函数编写单元测试,并且要维护这些测试。
This methodology requires that I write unit tests for every function I add, and that I maintain those tests.
让自动系统来构建代码、运行单元测试,可能是更可靠的解决方案。
Having an automated system build your code and run the unit tests can be a more reliable solution.
单元测试能够比单纯编译揭示出更多的问题。
在许多项目中,开发人员在书写代码的同时书写单元测试——或者有时甚至提前(如在测试驱动开发中)。
In many projects, developers write unit tests at the same time — or sometimes even before (as in test-driven development) — they write their code.
将可重复的单元测试原则应用于BPEL开发可提高工作效率和开发质量。
Applying the principles of repeatable unit testing to BPEL development increases both productivity and quality.
这有助于提高效率,这是因为无需重启此容器,让您能集中精力对感兴趣的组件进行单元测试。
This results in productivity gains because you are not required to restart the container, allowing you to concentrate on unit testing the components you are interested in.
目前来看,其相当稳定,因为在过去的一年中我们添加了5,000多个单元测试,涵盖了每一个特性。
It's currently fairly stable since we added over 5,000 unit tests over the last year covering just about every feature.
本文探究单元测试与功能测试之间的区别。
This article explores the differences between unit testing and functional testing.
理论上讲,这个代码片段(或者说是代码单元)是源代码中最小的可测试部分。
Theoretically, this piece, or unit, should be the smallest testable portion of source code.
原子性意味着要么所有事务操作都应用于应用程序状态,要么都不应用;事务是不可拆分的工作单元。
Atomicity means that either all of the transactions' operations are applied to the application state, or none of them are applied; the transaction is an indivisible unit of work.
确保成功实现组件开发和部署的一个重要方法就是单元测试。
One essential approach to ensure the successful development and deployment of components is unit testing.
这种新语言给单元测试带来的灵活性,非常令人兴奋,值得认真研究。
The agility this new language brings to unit testing is quite exciting and worthy of some serious exploration.
不论是否使用Contract4J进行单元测试,考虑组件的合约都会改进设计。
Whether or not you use Contract4J with your unit tests, thinking about the contract of your components will improve your designs.
单元测试可以提供最重要的安全屏障,允许您按照自己的意愿重构代码库。
Unit tests represent the primary safety net that allows you to refactor your code base at will.
编写单元测试是一个更好的方法,因为这些测试允许您模拟使用该应用程序的用户,然后确定应用程序是否正确响应。
Writing unit tests is a much better approach as these tests allow you to simulate a user exercising the app and then determine if the app has responded correctly.
即便如此,如果你确实有时间和精力去为小型项目写单元测试的话,也可能是个不错的主意。
That being said, if you have the time and resources to write unit tests for even small/short projects, it may be a good idea.
我们向一个贯穿全文的例子中逐渐添加新功能,并遵循如下简单的规则:编写一个单元测试,然后让它通过。
We'll add features to a running example by iteratively following a simple principle: write a unit test, make it pass.
我们向一个贯穿全文的例子中逐渐添加新功能,并遵循如下简单的规则:编写一个单元测试,然后让它通过。
We'll add features to a running example by iteratively following a simple principle: write a unit test, make it pass.
应用推荐