Write code before you write a test.
在编写测试前编写代码。
Before you start fixing it, write a test.
修复它之前,首先编写一个测试。
Just write a test and get it to pass.
仅仅编写测试,使它通过。
编写一个测试。
编写一个测试。
Write a test that the code in Listing 3 will pass.
写出清单3中的代码要通过的一个测试。
So the next step is to write a test for this method.
所以下一步就是为这个方法编写一个测试。
All this theory is great, but how do you write a test first?
整个理论很棒,但如何先编写测试呢?
How can you write a test for something that doesn't exist yet?
如何为尚不存在的代码编写测试呢?
Next, you will write a test case for the Address_To_AddressCSV data map.
下一步,您将为Address_To_AddressCSV数据映射编写测试用例。
Instead, write a test, then write just enough code to get that test to pass.
相反,您只需编写测试,然后编写足够的代码使其能通过测试。
In other words, write a test that exercises the code you are about to write.
换句话说,写一个将您要撰写的代码的测试。
You just write a test class (TC_Person in this example) that subclasses TestCase.
您只是写了一个测试类(在该示例是tC _ Person),它是TestCase的子类。
Every time you write new code, add a test, and every time you fix a bug, write a test.
每次编写新代码时,添加一个测试,每次修复一个bug时,编写一个测试。
Write a test plan, including test methodology, lab and test resource requirements, and schedule.
编写测试计划,包含测试方法、实验室和测试资源需求,以及日程安排。
Originally this brought difficulty to write a test and also a kind of challenge to me in the meantime.
这在给本文带来写作困难的同时,对我也是一种挑战。
The ability to write is a supreme test of linguistic competence.
写作能力是对语言能力的最高形式的测试。
First, you must know how to write a good test.
首先,您必须了解如何书写一个好的测试。
Now you have a failing test that tells you exactly what code to write.
现在您有一个即将失败的测试程序,它将告诉您真正需要编写那些代码。
Sometimes I write a little code, then write a little test, and they evolve together.
有时我编写了一点代码,然后编写一点测试,这样两者可以一起并进。
编写一个失败的测试。
Write and test a big program in small pieces.
将一个大块的程序分解成几个小部分进行编写和测试。
So, let's write a simple app to perform a test query (see Listing 2).
现在,让我们来编写一个执行测试查询的简单应用程序(请参见清单2)。
All too often, you might overlook a test or write an incomplete regular expression.
通常,您可能没注意到测试或编写不完整的正则表达式。
If there is a good specification, it is easy to write a good test plan.
如果具备了良好的规范,那么就很容易编写出出色的测试计划。
Write a unit test for the desired new capability.
为需要的新功能撰写单元测试。
It's difficult to write a unit test if there's no unit to test.
如果没有可测试的单元,那么就很难编写出单元测试。
It's difficult to write a unit test if there's no unit to test.
如果没有可测试的单元,那么就很难编写出单元测试。
应用推荐