I show them how to write tests using modern tools.
我告诉他们如何使用现代工具编写测试。
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真正强大的地方在于,您可以像编写代码一样快速编写测试。
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.
即使他们知道如何去做,并认为它是一种好的想法,但许多人仍然没有先编写测试。
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.
先写测试,再编写代码,这样可以巩固您对代码所需执行的操作的理解。
If I frequently don't write tests, then pretty soon I've got a pile of code that isn't covered by tests.
如果我经常不写测试,那么不久会有一堆代码没有经过测试。
In fact, if I tried to write tests for this code, they would technically run but wouldn't ever logically work.
事实上,如果我试着为这段代码编写测试,从技术方面来说它可以运行,但是无法按照逻辑工作。
As you write tests first and get them to pass, you're letting the code tell you what it wants to do and become.
在您先编写测试并通过测试这个过程中,您正在让代码告诉您它想要做什么,以及会成为什么。
You might say that they each allow you to write tests using their own particular dialect of convenience functions.
可以认为它们分别提供一种方便的测试 “方言”,可以用这些 “方言”编写测试。
As a programmer, you should write tests before you write code, then write just enough code to get the tests to pass.
作为一名程序员,应该在编写代码之前编写测试,然后只编写足以让测试通过的代码即可。
More often than not, if they do write tests, they're typically very simple, covering the method's main functional aim.
而且如果需要编写测试,通常都是十分简单、覆盖方法的主要功能目标的测试。
It not only motivates programmers to write tests, it also promotes teamwork and bonding through "You broke the build!" games.
它不但激发程序员去编写测试用例,而且还通过“Youbrokethebuild !”游戏促进了团队之间的合作和融合。
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 need a tool that tells you which parts of a program are not being tested so you can write tests for those parts and find more bugs.
您需要有一个工具告诉您程序的哪些部分没有测试到,这样就可以针对这些部分编写测试代码并找出更多bug。
The only way to achieve the maximum productivity in software development is not when you don't write tests, is when you trust your tests.
在软件开发上,取得最大效率的唯一方式不是不写测试,而是相信你的测试。
The idea is that when you write tests for your code using one of these tools, you can easily automate them and run them as often as needed.
使用这些工具编写测试代码后,你就可以非常方便地进行自动、重复的单元测试。
These folks are smart, they have lots of experience, and they say they don't need to write tests first because they know what they're doing.
这些程序员很聪明,他们具有许多经验,他们说不需要先编写测试,因为他们知道自己在做什么。
There are only a few rules that you must obey to write tests; beyond these, you are absolutely free to choose the testing strategy you prefer.
编写测试必须遵守的规则很少;除此之外,您绝对可以自由选择自己喜欢的测试策略。
It talks not only about the mechanics of how to write tests and allow them to drive your code, but also why test-driven programming is such a good thing.
该书不仅讲述了如何编写测试和让这些测试来驱动您的代码的原理,而且还讲述了测试驱动的编程为什么是一种好的编程方法。
Once you start to use these helper frameworks to write tests, these tests start to become higher level ones that I tend to categorize as component tests.
一旦开始使用这些帮助框架来编写测试,这些测试就开始成为更高级别的测试,我把它们归类为组件测试。
Of course, Cucumber also lets you use tables interspersed with your plain text, so you can write tests that are a mix of behaviour oriented and data oriented.
当然,Cucumber还可以在文本中镶嵌表格,故我们可以编写混合面向行为和面向数据的测试。
Of course, Cucumber also lets you use tables interspersed with your plain text, so you can write tests that are a mix of behaviour oriented and data oriented.
当然,Cucumber还可以在文本中镶嵌表格,故我们可以编写混合面向行为和面向数据的测试。
应用推荐