编写足够的代码来确保测试通过。
编写足够的代码,使测试通过。
显而易见,我的任务就是使测试通过。
我只在每步编写足够让测试通过的代码。
I wrote just enough code at each step to get the tests to pass.
运行这个测试案例并实现代码使测试通过。
您的目标是使测试通过。
我应该只编写少量代码,只要使测试通过即可。
功能测试通过孤立的HTTP请求检验用户接口。
Functional tests exercise the user interface through isolated HTTP requests.
只要测试通过,修改的部分就可以推送到主分支。
Once the tests have been passed the change set is pushed to the main branch.
如果测试通过,它将用一个绿色的复选标记来表示。
当实施TFP时,只添加了足够让测试通过的代码。
When practicing TFP, you add only enough code to make your tests pass.
编写代码以使测试通过。
任何时候所有测试通过,您可以将代码集成到系统中。
Anytime all the tests pass, you can integrate code into the system.
这段代码允许测试通过,但是再考虑一下,它十分糟糕!
This code allows the test to pass, but upon reflection, it's awful!
我现在可以以逸待劳,测试通过而我几乎没做任何事情。
I can now sit back and laugh. The tests pass, and I've done practically nothing.
让测试通过应该很简单,并且会帮助您不至于变得太不切实际。
Getting the test to pass should be simple and will help you to resist getting too fancy.
现在仅仅编写足够使测试通过的代码(这里有两个测试)。
Now I can write just enough code to get the tests (there are now two) to pass.
系统测试通过使用被录制的测试脚本对整个系统进行测试。
System tests ran through the entire system using the recorded test scripts.
我将创建一个名为machine . rb的空文件,使测试通过。
I'll create an empty file called machine.rb, making the tests pass.
现在,当运行这个测试时,测试通过,应该可以看到一个绿条。
Now when we run the test, it passes and I should see a green bar.
这是十分重要的,因为该类必须简短地返回另一个字符串才能使测试通过。
This is important because the class must shortly return another string for your test to pass.
这时,标准的TDD方法是停止测试并且开始进行修改直到测试通过。
The normal TDD approach at this point is to stop testing and start fixing until the test passes.
TDD要求您反过来做:先编写测试,并让它来提示如何编写可以让测试通过的代码。
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.
有时,最简单的方法是让一个人坐在程序前将每一个测试通过或失败的结果都标记下来。
Sometimes it's simplest to have a human sit in front of the program and mark each test as pass or fail.
作为一名程序员,应该在编写代码之前编写测试,然后只编写足以让测试通过的代码即可。
As a programmer, you should write tests before you write code, then write just enough code to get the tests to pass.
确保该测试通过构建过程成功运行意味着也能从CI构建的上下文中启动这些相同的测试。
Ensuring that tests run successfully through a build process means these same tests can be kicked off in the context of a CI build too.
在运行Jester之前,所有对没有修改的源代码的单元测试都必须测试通过。
Before you can run Jester, all the unit tests must pass with the unmodified source code.
FIT测试通过定义更改,并确保软件修改不影响以前满足的需求,从而帮助增加了灵活性。
FIT testing helps increase agility by defining changes and ensuring that no software modifications break previously satisfied requirements.
这个测试通过查找建议的已知副作用或者使用一个mock对象来验证方面中的建议是否成功。
The test verifies that the advice in the aspect succeeds by either looking for a known side-effect of the advice or by using a mock object.
正如我上月所述,编写足够的代码以使测试通过可以简化程序代码,从而有更多的精力关注手边的工作。
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.
应用推荐