当你不写测试的时候。
Just open up your IDE and start writing tests.
只管打开您的IDE并且开始编写测试。
The framework makes it easy to do the right thing, including writing tests.
Grails 框架使得做正确的事(包括编写测试)变得很容易。
When you're writing tests, be mindful of the quality of the tests you write.
编写测试时,一定要注意所编写测试的质量。
Selenium IDE is an easy way to start writing tests for your web applications.
SeleniumIDE是开始为您的web应用程序编写测试的一种简单方法。
PureCoverage has another benefit when writing tests: it tells you when to stop.
当编写测试时,PureCoverage还有另一个好处:它将告诉您何时应该停止。
When writing tests first, you have to get used to being intentionally shortsighted.
在先编写测试时,必须习惯故意只看眼前。
Even if you have a large, untested legacy code base, start writing tests for it now.
即使您有一个大规模的未经测试的遗留代码基础,现在就开始为它编写测试吧。
In federal writing tests, 32 percent of girls are considered "proficient" or better.
在联邦写作测试中,32%的女生程度‘熟练’及以上。
Perhaps some people don’t like the fact that writing tests first interrupts the flow.
或许某些人不希望编写测试打断工作流。
Moq targets those developers who are writing tests but are not using mocking frameworks.
Moq的目标就是为了帮助那些编写测试代码,但却不使用Mocking框架的开发人员。
In fact, most of the time that I use metaprogramming on a daily basis is when I'm writing tests.
其实,我平常大多数时候都把元编程应用在写测试上面。
Writing tests to explore unknown GUI code is more complex than writing tests for non-visual code.
为探究未知gui代码而编写测试比为非可视化代码编写测试要复杂。
As you will see, these are quite verbose and writing tests like this would be relatively time-consuming.
您会看到,使用这些编程技术十分繁琐,并且编写此类测试相当耗时。
Just because you're writing tests doesn't mean that you should throw good design principles out the window.
在编写测试时,也应该遵守良好的设计原则。
And yet when I think about working to keep code well-factored and writing tests, I find that makes me go faster.
但当我回顾我自己的经历时,却发现保持代码的良好构造以及编写测试反而使我的工作加快了。
The typical workflow for writing tests is dependent on the developer, and Jarvis makes no assumptions about that.
编写测试的具体流程取决于开发人员,Jarvis对此没有任何假设和约束。
Going back further, I find it really interesting that most of my CS teachers would never even bother writing tests.
再向前追溯到更早一些,很多教我的计算机老师几乎也从来没有编写过测试代码。
As a programmer, the practice (XP or otherwise) that has had the biggest impact is writing tests before I write code.
作为一位编程人员,受最大影响的实践(Practice)(XP或其它方面)是在我编写代码之前编写测试程序。
But what if, rather than thinking in terms of writing tests and how to test things, you thought about behavior, instead?
但是,如果不考虑编写测试和如何测试,而是考虑行为,结果会如何呢?
They offer reasons ranging from lack of time, to ineffective tools, to problems writing tests with many dependent objects.
他们会列出各种理由,如时间不够、没有有效的工具以及在编写带有许多有依赖关系的对象的测试方面有问题。
Even knowing this, we're nowhere near the critical mass that would make writing tests before writing code a standard practice.
即使了解了这种重要性,我们也没有达到关键的一点:使在编写代码之前编写测试成为一种标准实践。
If you aren't already in the habit of writing tests, allow Grails to nudge you gently in the right direction. You won't regret it.
如果以前没有编写测试的习惯,那么Grails将优雅地将您带到正确的方向上来,您肯定不会后悔。
In everything we do, whether writing tests, writing production code, or refactoring, we keep the system executing at all times.
我们在做任何事情时(无论是写测试、写产品代码还是重构),都要保证系统能够一直运行。
DbUnit makes writing tests that rely on a database easier by handling the associated complexity of seeding a database between test states.
DbUnit能够很好地处理在测试状态间建立一个数据库这样的复杂性,因而它会使编写依赖于数据库的测试变得较为简单。
It wasn't too long ago that the idea of writing tests was scorned by most developers, who considered it as not worthy of their time and talent.
可就在不久前,很多开发人员还不屑于编写测试代码。他们觉得写测试代码既浪费时间又浪费他们的才能。
Martin Fowler: the thing I like about taking small steps and writing tests first is that it gives me a simple to do list of the things I've got to do.
MartinFowler:我之所以采用逐步设计以及先写测试的方法,是因为这样做使我有了一个简明扼要的任务列表。
This is the second part of a two-part article investigating how use of TDD allows better design to emerge from the process of writing tests before you write code.
本文是分两部分的文章的第二部分,讨论如何使用TDD在编写代码之前编写测试,并通过这个过程形成更好的设计。
This is the second part of a two-part article investigating how use of TDD allows better design to emerge from the process of writing tests before you write code.
本文是分两部分的文章的第二部分,讨论如何使用TDD在编写代码之前编写测试,并通过这个过程形成更好的设计。
应用推荐