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.
通过写测试单元而后再编码使其通过测试可以更加明确开发的目地。
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.
有时,最简单的方法是让一个人坐在程序前将每一个测试通过或失败的结果都标记下来。
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.
只要通过所有的测试用例,我就将向单元测试自动库添加新的单元测试类,在每次构建时运行。
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.
首先编写测试用例,并且只编写足以让测试用例通过的代码。
All the students are expert drivers, but before they drive any of the buses, they will have to pass a special test.
所有的学生都是开车的能手,但在驾驶公共汽车之前,他们必须通过一项专门测验。
You may also be asked to provide references, meet with school officials, or pass a test in the subject matter you are requesting credit for.
他们可能会要求你提供参考,与学校官员见面,或者就你申请学分的方面做一个测试。
Unless those test cases pass, the team is blocked from any significant testing.
除非那些测试用例通过了,不然团队将停止于此处,不能进行所有重要的测试。
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方法,以便通过测试。
Simply run this test suite and pass in the path to your script. This test suite will run your script much like the groovy command.
只要运行该测试套件,把脚本的路径传给它,它就会运行脚本,就像groovy 命令一样。
It's already been four years, so I might pass the test next time. That's what I hope for.
她说:“已经过去四年了,我很可能下次就能通过考试,这是我所希望的。”
If you run that means you didn't pass the test!
如果你逃避,这就意味着你没有通过考验!
This means that you will pass the test only if that particular type of exception is raised in the designated line.
这意味着只有在指定行中抛出特定类型的异常的时候,您才会通过测试。
This means that you will pass the test only if that particular type of exception is raised in the designated line.
这意味着只有在指定行中抛出特定类型的异常的时候,您才会通过测试。
应用推荐