Honestly, I don't know [why there is such a high resistance to test-first].
坦白说,我不知道(为何对测试优先的抵制如此强烈)。
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.
优先测试的程序设计:开发人员的个人实践。
First, the test recorder will initialize.
首先,测试记录器将初始化。
首先,创建一个测试项目。
First, add your test to your user group.
首先,将您的测试添加到用户组。
To workaround this problem, record the new script into a local Rational Performance Test project first.
为了处理这个问题,首先将一条新脚本记录到本地的RationalPerformanceTest项目中。
Experience is a hard teacher because she gives the test first, the lesson afterwards.
经验是一名苛刻的老师,因为她总是先考试再给你上课。
首先应该测试什么呢?
All this theory is great, but how do you write a test first?
整个理论很棒,但如何先编写测试呢?
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.
他的家乡加州萨克拉门托应该会有这项技术的第一次测试。
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 first test of central banks’ macroprudential prowess may already be upon them.
对央行总体审慎政策威力的首次测试或许已经开始。
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.
我就是反复不断地琢磨这个问题,想让我的第一个测试顺畅运行。
So we'll see that, ok, we passed the first smoke test.
所以我们会看到,我们通过了第一个发烟测试。
TDD requires that you do the opposite: write the test first and allow it to inform how you write the code that makes the test pass.
TDD要求您反过来做:先编写测试,并让它来提示如何编写可以让测试通过的代码。
Twist also supports manual tests, so less technical users can create a manual test first, and technical users can turn it into an automated test when the team is ready.
Twist也支持手动测试,因此技术较弱的用户可以先创建手动测试,而技术用户可以在团队准备就绪时将其转化成自动化测试。
Write your test cases first, and write only enough code to make your test case pass.
首先编写测试用例,并且只编写足以让测试用例通过的代码。
Write your test cases first, and write only enough code to make your test case pass.
首先编写测试用例,并且只编写足以让测试用例通过的代码。
应用推荐