Test-first development (Maps to testing)
测试优先的开发(映射到测试(testing))
Test-First Programming: An individual practice for developers.
优先测试的程序设计:开发人员的个人实践。
Honestly, I don't know [why there is such a high resistance to test-first].
坦白说,我不知道(为何对测试优先的抵制如此强烈)。
Support starting the test automation effort immediately, using a test-first approach.
要支持“首先测试”的方式,并可以马上开始进行自动化测试。
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)的方式逐渐增长的。
You may not have success with test-first development, but accumulating test collateral gives you the freedom to refactor your code.
您可能还没有在测试第一的开发中成功过,但测试会间接给您带来重构代码的便利。
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测试中由客户负责的那一半。
Unit testing, test-first programming, and test-driven development do not have to be implemented in JUnit, any more than GUI programming must be done with Swing.
单元测试、测试先行的编程和测试驱动的开发并非都要在JUnit中实现,任何比较GUI的编程都必须用Swing来完成。
One problem you're likely to encounter in test-last as opposed to test-first development, especially with legacy code, is that there are often unadvertised dependencies and prerequisites.
对于相对于test - last开发来说的test - first开发,尤其是对于遗留代码来说,您可能会遇到一个问题是,经常存在未公开的依赖关系和先决条件。
Being a test-first kind of guy, I'll start by writing a quick JUnit test to verify that I can obtain the information I want from a sample line obtained from the CSV file, shown in Listing 4.
作为一个测试优先的工具,我首先编写一个快捷JUnit测试,确认我可以从CSV文件的一个样例行获取的我所需要的信息,如清单4所示。
You don't need to commit yourself to methodology such as agile programming, extreme programming, or test-first design to see the advantages of planning for testing when you are writing your code.
在编写代码时,不需要在测试期间为了查看预期的优势而去掌握诸如敏捷编程、极限编程或测试优先设计等方法。
First comes the test, second comes the lesson.
先来测试,再来是上课。
Experience is a hard teacher because she gives the test first, the lesson afterwards.
经验是一名苛刻的老师,因为她总是先考试再给你上课。
His home city of Sacramento, California should see the technology's first test.
他的家乡加州萨克拉门托应该会有这项技术的第一次测试。
I passed my driving test first go.
我考驾照一次就通过了。
I passed my driving test at the first attempt.
我考汽车驾驶执照一次就通过了。
Mission to the moon intends to establish and test the first elements of a communications network on the moon.
登月计划旨在建立和测试月球上通信网络的第一部分。
The first test asked 40 volunteers to unscramble sentences.
在第一个实验中,40名志愿者被要求整理句子。
I'll give you a blood test first.
我先给你验血。
The scientists did a test with first-year college students the first time they met in class.
在大一学生第一次在课堂上见面时,科学家们针对他们做了一个测试。
首先应该测试什么呢?
We write our example, or unit test, first.
首先,我们写了示例,或者叫单元测试。
Driving integration test first accelerates the resolution of architecturally significant issues into earlier phases of the life cycle.
先进行集成测试加速了架构上重要的问题更早进入生存周期的相应阶段。
The phenomenal thing to me is that writing a test first quite often drives me to create the simplest code possible.
对我来说,比较明显的就是首先编写测试经常会推动我尽可能去创建最简单的代码。
The phenomenal thing to me is that writing a test first quite often drives me to create the simplest code possible.
对我来说,比较明显的就是首先编写测试经常会推动我尽可能去创建最简单的代码。
应用推荐