One of these -- test-first programming, or TFP -- is the topic of this month's column.
其中一种——优先测试的程序设计,或称为 TFP——是本文的主题。
This is epitomized by "agile" practices that endorse test-first development — building tests before you code.
这可以由“敏捷”实践所概括,其认可测试先行开发——在你编码之前构建测试。
Agile teams need tools that support starting the test automation effort immediately, using a test-first approach.
敏捷团队需要的测试工具要支持“首先测试”的方式,并可以马上开始进行自动化测试。
Unlike classic test-first programming, I'm writing a lot of tests here without necessarily writing any model code.
与典型的test - first编程不同,我在此处编写了很多测试代码却没有必要编写任何模型代码。
XP demands that you write tests before you write code, so a simple design is one that grows over time in a test-first manner.
XP要求您在写代码之前先写测试,所以简单设计是以一种测试当先(test - first)的方式逐渐增长的。
As I mentioned in the test-first development practice section of last month's installment, acceptance testing is the customer half of the XP testing picture.
在上篇文章的“测试优先的开发方法”这一部分中我已经提到了验收测试,把它作为整个XP测试中由客户负责的那一半。
Test-first development (Maps to testing)
测试优先的开发(映射到测试(testing))
Test-First Programming: An individual practice for developers.
优先测试的程序设计:开发人员的个人实践。
To workaround this problem, record the new script into a local Rational Performance Test project first.
为了处理这个问题,首先将一条新脚本记录到本地的RationalPerformanceTest项目中。
Test your application by first deploying the security plan onto the server and then by deploying your application.
要对您的应用程序进行测试,首先在服务器上部署安全计划,然后部署您的应用程序。
First, add the test module to the server and make sure the server is started.
首先,将测试模块添加到服务器,并确保服务器已启动。
Whenever you have a reason to expect data skew in production data, you might want to reproduce data skew in your test data. First, store the estimated frequencies in a table.
每当您有理由期望在生产数据中出现数据倾斜时,您就可能需要在测试数据中再现数据倾斜,首先,在一个表中存储预计频率。
The phenomenal thing to me is that writing a test first quite often drives me to create the simplest code possible.
对我来说,比较明显的就是首先编写测试经常会推动我尽可能去创建最简单的代码。
Bill Venners: If writing the test first kind of correlates to thinking about designing the interface, then it is kind of the same thing.
BillVenners:既然先写测试与考虑如何设计接口是相关的,那么它们是否是一回事?
His home city of Sacramento, California should see the technology's first test as part of the upgrading of its rail yard.
他的家乡加利福尼亚州萨克拉门托市应该将这项技术的首次测试视为其铁路站场升级的一部分。
Writing test cases first lowers your risk in refactoring.
先编写测试用例会降低重构中的风险。
The unit test methods first verify that the object provided is not null, and then perform one or more very basic actions on the object.
单元测试方法首先验证所提供的对象不是空的,然后对该对象执行一个或多个非常基础的操作。
I just kept bashing at the problems, trying to get that first test to run cleanly.
我就是反复不断地琢磨这个问题,想让我的第一个测试顺畅运行。
For example, with my test, I'll first call the getDefinition() method and then provide an implementation of a Timer's run() method.
以我的测试为例,我将首先调用getDefinition()方法,然后提供一个Timer的run() 方法的实现。
The operation is the first serious test of Barack Obama's strategy in Afghanistan and Pakistan.
这次行动是对奥巴马阿富汗和巴基斯坦战略的首次严峻考验。
The test case (Listing 2) first loops through each URI that implements the service.
该测试用例(清单2)首先遍历实现该服务的每个URI。
To test the find service, first install it in the server, then navigate to it in the browser.
要测试查找服务,首先将其安装在服务器中,然后在浏览器中导航至该页。
Now that you have recorded your first test, you can export it for use in JUnit.
现在您已经录制了您的第一个测试,现在可以导出它以便在JUnit中使用。
Code profiling should be done in the early stages of development, or as a first performance test after development.
代码分析应在开发的早期阶段进行,或将其作为开发后的第一个性能测试。
This way, you know that things are working before you record your first test. To test your service
这样,您就在记录第一个测试之前知道一切都在运转。
Falcon 9, a private space rocket that might eventually carry people into orbit, has just passed its first test.
猎鹰9号刚通过对它的第一次考验,这枚私人公司的火箭最终可能将人送进轨道。
This may seem unusual because nothing like this happened when you first created the test database.
这看起来不太正常,因为在第一次创建测试数据库时没有发生这种情况。
Once you've written the first test, you can often develop more tests very quickly from the same framework. This is where fixtures come in handy.
一旦编写了第一个测试,您就能够经常快速地从同一个框架下开发更多的测试。
Once you've written the first test, you can often develop more tests very quickly from the same framework. This is where fixtures come in handy.
一旦编写了第一个测试,您就能够经常快速地从同一个框架下开发更多的测试。
应用推荐