In five years I hope to be a successful multi-unit franchisee with five-plus locations.
在五年里,我希望开五家以上的分店去成为一个成功的多店特许经营者。
This methodology requires that I write unit tests for every function I add, and that I maintain those tests.
这种方法要求我为添加的每个函数编写单元测试,并且要维护这些测试。
For example, early in my career, in an effort to quickly release software, I skipped unit testing as I believed the effort wasn't worth the cost.
例如,在我职业生涯的早期,由于需要快速发布软件,我省略了单元测试,因为我认为不值得做这些工作。
I ran my unit tests and watched a raft of error messages float by.
我开始运行我的单元测试,然后看见一连串错误消息跳将出来。
OK, so if I give you a unit vector, you can ask yourself, if I move in the direction, how quickly will my function change?
也就是,如果我给你一个单位向量,试问,我沿着这个方向移动,我的函数值会变化得多快呢?
Even though I haven't shown the unit tests for previous versions, all the examples have tests.
尽管我没有展示以前版本的单元测试,但实际上所有的示例都已经进行了测试。
I assign homework involving the writing of unit tests.
我布置了关于编写单元测试的作业。
If I'm developing for long stretches of time without having written corresponding unit tests, I get the jitters.
如果我相当长一段时间都在进行开发,而没有编写相应的单元测试,我就会觉得紧张。
I can't integrate any code with failing unit tests.
如果单元测试失败,我就无法整合任何代码。
Luckily, I learned that pushing untested code into production didn't work; consequently, I began to write unit tests.
幸运的是,我已经学到 绝不应该将未经测试的代码投入生产;因此开始坚持编写单元测试。
I hope that you see the benefits of using mock objects in unit testing. I also hope this brief tutorial helps you see how to create mock objects easily.
我希望你们能够发现在单元测试中使用模拟对象的益处,也希望这篇简短的指南能够帮您了解如何简单地创建模拟对象。
When I dig a little deeper into how the team actually plans to go about performing unit testing, I often get a variety of unconvincing responses.
当我更深入地了解团队如何安排进行单元测试的计划时,常常得到各种不足以令人相信的回答。
In other words, the entire unit test library I create for an application becomes part of my build process.
换句话说,我为应用程序创建的整个单元测试库都成为构建流程的一部分。
I also need to support pounds as a unit of measure, so I also define a family of pound properties.
我还需要支持磅作为度量单位,因此我还定义了一个pound属性家族。
For Father's Day one year, I actually constructed a biltong dehydration unit in a big closet.
有一年的父亲节,我在橱柜里建了一个干肉片脱水装置。
I am a huge advocate of unit testing and have always loved JUnit.
我本人极力主张进行单元测试,并一直非常喜欢JUnit。
The junior I&T team member took the unit test specification and created scripts based on the current build of the software.
初级的集成与测试团队成员接受单元测试说明并基于当前的软件构建版本创建测试脚本。
Before I launch into the practical aspects of unit testing with Groovy, I think it's important to talk about the more general issue of its place in your development toolbox.
在我开始介绍用Groovy进行单元测试的实际经验之前,我认为先谈谈一个更具一般性的问题——它在您的开发工具箱中的位置,这非常重要。
A: As far as I know, the use of new materials could reduce unit cost by 10%.
据我所知,新材料的使用能减少单位成本的10%。
I started relying heavily on functional tests (over unit tests) which allowed me to test changes as a user would.
我开始严重依赖功能测试,而且超过了对单元测试的依赖,这让我能像用户那样测试应用中的变化。
Instead, I would write the class that runs all the unit test cases against the methods in the class.
相反,我编写根据类中的方法运行所有单元测试用例的类。
In fact, before I even start building the project, all unit tests are run to ensure that the integrity of the application code has not been unintentionally compromised.
实际上,在我每次开始构建项目之前,都将运行所有的单元测试,以确保应用程序代码的完整性没遭到无意破坏。
I began by replacing the example code in my unit test which instantiates the task library's classes with example code for my unimplemented DSL and revised it several times until I was satisfied.
我开始将我单元测试中初始化任务库各个类的范例代码替换成我尚未实现的DSL的范例代码,并且修改了数次,直到我满意为止。
When I questioned them about what that meant, their definition was that they were doing unit testing and continuous integration.
当我问到他们这意味着什么的时候,他们的定义是,他们正在做单元测试和持续的集成。
Specifically, I want to offer some tips on how easy it can be to write unit tests with mock objects.
特别地,我想提供一些技巧来说明编写带有模拟对象的单元测试是多么容易。
Performance issues can emerge from unit tests, which leads me back to the code to see if I can make some improvements.
单元测试会引发性能问题,这使得我重新审视代码以查看是否可以进行一些改进。
This API (again, borrowed from NUnit) is very easy and intuitive to read, which I think is a very important part of unit testing.
这个API(从NUnit借鉴而来)非常简单易读,我认为这在单元测试中是非常重要的。
I can also see applying bubbles to other tools such as profilers, automatic bug finding tools, unit testing results, and so on.
我也看到过把气泡应用到其他工具,如性能分析工具、自动化缺陷查找工具、单元测试结果等等。
Over the last few years, unit testing has become central to the way I write software, thanks to a lightweight programming methodology called Extreme programming (XP) (see Resources).
在过去的几年里,单元测试已成为我编写软件的核心环节,多亏了一种称为极限编程(XP)的简便编程方法(请参阅参考资源)。
Earlier, I talked about an attribute node being both the attribute and its value, treated as a single unit of information.
前面,我提到属性节点包括属性及其值作为一个信息单位来处理。
应用推荐