You are not allowed to write any production code unless it is to make a failing unit test pass.
在写完“红色”(无法通过测试)的单元测试代码之前,不允许写任何的产品代码。
As I said last month, writing just enough code to make a test pass keeps code simpler and keeps me focused on the task at hand.
正如我上月所述,编写足够的代码以使测试通过可以简化程序代码,从而有更多的精力关注手边的工作。
TDD requires that you do the opposite: write the test first and allow it to inform how you write the code that makes the test pass.
TDD要求您反过来做:先编写测试,并让它来提示如何编写可以让测试通过的代码。
By writing a test and then writing the code to make that test pass you have a much better idea of what the goal and purpose of your code is.
通过写测试单元而后再编码使其通过测试可以更加明确开发的目地。
Since this year, demonstrative area of export ceramics for daily use products a test pass rate reached 99.97%, than last year increase 0.26%;
今年以来,示范区内出口日用陶瓷产品一次检验合格率达到99.97%,比去年提高0.26%;
When you're writing the actual production code, you want to play the part of a jerk developer who will only do the minimum amount of work possible to make the test pass.
在编写实际的生产代码时,您希望充当一回jerk开发人员的角色,只完成最少量的工作来使测试通过。
The enterprises have the most advanced glass production lines, product quality inspection center and state departments of glass test pass through the national CCC certification.
本企业拥有目前最先进的钢化玻璃生产线,产品质量国家玻璃检测中心和有关部门检测合格,通过国家CCC认证。
For all the feelings readers attach to stories, literature is a numbers game, and the test of time is extremely difficult to pass.
论及读者对这些故事的所有感受,文学是一个数字游戏,但很难经受住时间的考验。
He didn't pass the test yesterday.
他昨天没有通过考试。
The kid is doing his lessons carefully in order to pass the test.
为了通过考试,这个孩子正在认真地做功课。
Maybe I can't pass the English test this time, Mum.
妈妈,这次我可能过不了英语考试了。
Applicants must pass a written test, an audition and an interview and only the most promising students are accepted to study at these colleges and schools.
应试者必须通过笔试、试镜和面试,只有最有前途的学生才能进入这些院校学习。
Sometimes it's simplest to have a human sit in front of the program and mark each test as pass or fail.
有时,最简单的方法是让一个人坐在程序前将每一个测试通过或失败的结果都标记下来。
Pass the test, the basic realization of the integrated management books, online ordering and other functions into one book sales management system.
通过测试,基本实现了这个集成书籍管理、网上定购等功能于一体的图书销售管理系统。
This "write a test, write just enough code to get it to pass, rerun the test" approach is the xp development flow that you should experience every day.
这种“编写一个测试,编写足够的代码来使测试通过,重新进行测试”方法是您每天都在经历的XP开发流程。
If we pass this test and are fortunately admitted by a university, we shall not stop making efforts.
如果我们经过了考试,并幸运地被一所大学所录取,我们也不应停止努力。
Someone updating to that point should be able to compile it (if applicable) and run the test suite, and have the test suite pass.
也就是说,其他人此时更新代码后应该能够编译(可能的话),执行测试套件,并通过测试。
Before adopting ODC, our exit criteria for each phase were only evaluated by the pass ratio of test cases.
在采用ODC之前,我们每个阶段的退出标准仅仅是根据测试用例的通过率来决定的。
As long as all the test cases pass, I add the new unit test class to my unit test automation library, which gets run on every build.
只要通过所有的测试用例,我就将向单元测试自动库添加新的单元测试类,在每次构建时运行。
None required students to pass an eighth-grade test before going to high school.
没有一个州要求学生在上高中之前必须通过八年级的考试。
If you pass the test, you're in good company: Abraham, Moses, Samuel, David, Daniel, Timothy, and Paul were all called faithful servants of God.
你若通过了考试,你就有很多好伙伴了:亚伯拉罕,摩西,撒母耳,大卫,但以理,提摩太,还有保罗,他们都可称为神忠心的仆人。
Their test cases and use flows that illustrate how they accomplish their goals become our top "Must Pass" test cases.
他们的测试结果和使用流程说明他们的目标是要成为我们的头号必须通过的测试方案。
We'll add features to a running example by iteratively following a simple principle: write a unit test, make it pass.
我们向一个贯穿全文的例子中逐渐添加新功能,并遵循如下简单的规则:编写一个单元测试,然后让它通过。
Write your test cases first, and write only enough code to make your test case pass.
首先编写测试用例,并且只编写足以让测试用例通过的代码。
Some business writers pass Karl Marx's test of changing the world as well as interpreting it.
很多商业书刊的作者通过了卡尔·马克思的测试,那就是改变世界并诠释这种改变。
Unless those test cases pass, the team is blocked from any significant testing.
除非那些测试用例通过了,不然团队将停止于此处,不能进行所有重要的测试。
Because you need to run the GoogleTest test case, the test suite you pass as parameter to run method takes GoogleTest.class as an argument.
因为需要运行GoogleTest测试用例,所以,作为参数传递给run方法的测试套件采用GoogleTest . class作为参数。
This means the Calc.parse method has to be adjusted just slightly to get this test to pass, as shown in Listing 8.
这意味着必须稍微调整Calc. parse方法,以便通过测试。
This means the Calc.parse method has to be adjusted just slightly to get this test to pass, as shown in Listing 8.
这意味着必须稍微调整Calc. parse方法,以便通过测试。
应用推荐