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.
您应该首先编写测试,然后再编写代码。
然后编写测试,编写文档。
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.
是的,当你首先编写测试时,你不能编写一个完整的算法。
While 21.7% never write any tests, most do write some tests, and 34.8% always write tests.
有21.7%的开发者表示他们从不写任何测试。大部分人偶尔写一些测试。34.8%的人总是写测试。
Write tests that fail, then implement the functionality to make them pass.
编写测试,失败了就实现功能使其通过。
Write tests that fail, then implement the functionality to make them pass.
编写测试,失败了就实现功能使其通过。
应用推荐