If you write code, write tests.
写代码,就一定要写测试。
然后编写测试,编写文档。
Do you write tests for your application?
你为你的应用程序写测试吗?
Try to write tests for each thing it does.
尽量为它所做的每件事编写测试。
You should write tests before you write code.
您应该首先编写测试,然后再编写代码。
I'm incredibly relaxed when I'm about to write tests.
我在写作时会很放松。
When I write tests first, I have fantastic logic coverage.
在我先编写测试时,我有许多奇异的逻辑。
With a little practice, any programmer can write tests first.
采用这一点做法,任何程序员都可以先编写测试。
You can find a few tools that automatically write tests for you.
您能够找到很多可以为您自动编写测试的工具。
The choice of when to write tests is independent of project size.
项目规模并不影响什么时候书写测试的选择。
It's true, when you write tests first, you cannot write a whole algorithm.
是的,当你首先编写测试时,你不能编写一个完整的算法。
Write tests that fail, then implement the functionality to make them pass.
编写测试,失败了就实现功能使其通过。
If you write real documentation, write tests that verify every statement you make in it.
如果你写了实际的文档,写写测试来验证一下其中的陈述。
While 21.7% never write any tests, most do write some tests, and 34.8% always write tests.
有21.7%的开发者表示他们从不写任何测试。大部分人偶尔写一些测试。34.8%的人总是写测试。
My job is to write code, not tests.
我的工作就是写代码,而不是测试。
Write the unit test before writing code for class it tests.
首先编写单元测试,然后再编写要测试的类代码。
In the same way, I write at least simple installations before those tests.
同理,我会在那些测试之前至少编写一些简单的安装。
书写单元测试。
If you think a piece of code is confusing, write unit tests for it.
如果你觉得一段代码难于理解,那么就写一个单元测试。
Second, you must discipline yourself to write the tests before coding.
第二,您必须要求自己在编码之前书写测试。
With our preparations completed, we can now begin to write unit tests.
完成准备工作后,现在我们可以开始编写单元测试了。
With the right foundation, you can write a lot of great tests.
使用这个合适工具,您可以编写大量好的测试。
It follows that you could also write these two particular tests simultaneously, and early.
接着您还可以同时并及早地编写这两个特别的测试。
Write the tests first. No, really.
测试先行不要惊讶,我是说真的。
In other words, write and run the tests that will find new and serious bugs.
换句话说,撰写并运行那些将找到新的更严重的缺陷的测试。
If they write unit tests, they can write them before implementing the code.
如果他们书写单元测试的话,他们就可以在执行代码之前就去书写了。
As a result, their design makes it very easy to write unit tests.
因此,他们的设计使得编写单元测试变得很容易。
In fact, I just can't write enough unit tests.
实际上,我总是无法编写足够的单元测试。
In fact, I just can't write enough unit tests.
实际上,我总是无法编写足够的单元测试。
应用推荐