If you write code, write tests.
写代码,就一定要写测试。
Write tests for the servlets and JSPs.
为servlet和JSP编写测试。
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 show them how to write tests using modern tools.
我告诉他们如何使用现代工具编写测试。
I'm incredibly relaxed when I'm about to write tests.
我在写作时会很放松。
Jeff: "I just fired Mark because he doesn't write tests."
Jeff:“因为Mark不编写测试,刚被我解雇了。”
When I write tests first, I have fantastic logic coverage.
在我先编写测试时,我有许多奇异的逻辑。
And as they write tests, the customers come to expect tests.
这样就造成了编程人员编写测试,而客户期盼测试的情形。
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.
是的,当你首先编写测试时,你不能编写一个完整的算法。
Many programmers who don't write tests first don't even know it's an option.
许多没有先编写测试的程序员甚至不知道还可以使用这种方法。
You need to take small steps and write tests that force you to take more steps.
您需要采取一些较小的步骤,然后编写迫使您要采取更多步骤的测试。
It's not hard to write tests that cover simple methods like setters and getters.
编写覆盖像setter和getter这样简单方法的测试代码并不难。
The true power of Rails is that you can write tests as fast as you can write code.
Rails真正强大的地方在于,您可以像编写代码一样快速编写测试。
Once you partially test all the classes, write tests that cover any uncovered methods.
对所有类进行专门测试后,还要为所有未覆盖的方法编写测试代码。
If you write real documentation, write tests that verify every statement you make in it.
如果你写了实际的文档,写写测试来验证一下其中的陈述。
By the same token, it's more effective to write tests that you know you'll run often.
出于同样的原因,编写那些您知道将要经常运行的测试程序会更有效些。
You have to get used to the idea that you can and should write tests before you write code.
您必须习惯这种思想,在编写代码之前,可以并应该编写测试。
Even if they know how and think it's a good idea, many people still don't write tests first.
即使他们知道如何去做,并认为它是一种好的想法,但许多人仍然没有先编写测试。
Cucumber on the other hand lets users write tests in plain text files in almost free form English.
另一方面,Cucumber让用户用纯文本文件且不受英语的限制来编写测试。
Using Cobertura's reports, you can identify the untested parts of the code and write tests for them.
利用Cobertura报告,可以找出代码中未测试的部分并针对它们编写测试。
You write tests before you write the code, solidifying your understanding of what the code needs to do.
先写测试,再编写代码,这样可以巩固您对代码所需执行的操作的理解。
You write tests before you write the code, solidifying your understanding of what the code needs to do.
先写测试,再编写代码,这样可以巩固您对代码所需执行的操作的理解。
应用推荐