XP talks about two kinds of tests: programmer tests and customer tests.
XP涉及两种测试:程序员测试和客户测试。
The team should have automated suites of programmer tests and customer tests.
团队应该拥有程序员测试和客户测试的自动化套件。
Most importantly, it assumes you have programmer tests -- and that they all pass all the time.
最重要的是,它假设您做过程序员测试――并且这些测试 每一次都全部通过。
A developer cannot check code into the source code repository until all the programmer tests pass.
开发人员只有在通过所有程序员测试后才可以将代码检入到源代码资源库中。
Programmer tests tell developers whether the system works (as defined by the customer) at any point in time.
程序员测试告诉开发人员系统是不是在任何时刻都能正常运行(象客户定义的那样)。
As a programmer, I am frequently amazed by the difference between coding with programmer tests and coding without them.
作为一名程序员,我常常对使用程序员测试进行编码与不使用程序员测试进行编码之间的差别感到吃惊。
Programmer tests also give developers courage to refactor the code, because a test failure tells the developer immediately if something's broken.
程序员测试还给予开发者重构代码的勇气,因为测试失败会立即告诉开发者是不是有地方出了问题。
You want to run your programmer tests throughout the product's development and yet be able to easily remove them for the purposes of releasing the code.
在产品开发期间,你可以运行你的测试程序,而为了发布产品,你仍然能够轻易地将其从代码中移除。
In computer programming, unit testing is a software verification and validation method in which a programmer tests if individual units of source code are fit for use.
在计算机科学中,单元测试是一个有程序员测试源代码的个体单元是否适合使用的软件检测和验证方法。
Writing tests before I write code has revolutionized my life as a programmer, and it can do the same for you.
在编写代码前编写测试极大地改变了我作为程序员的生活,它同样也可以改变您的生活。
As long as you keep your tests and code synchronized (and that's the whole point of the practice), if a programmer wants to know what the system does, he or she can look at the tests.
只要您保持测试和代码的同步(这是实践的关键点),如果有程序员想知道系统能做什么,他或她可以参看测试。
As a programmer, you should write tests before you write code, then write just enough code to get the tests to pass.
作为一名程序员,应该在编写代码之前编写测试,然后只编写足以让测试通过的代码即可。
Every time a programmer runs the build process and has a successful code compile, a run of all the applicable unit tests should follow.
程序员每次运行构建流程并成功编译代码时,应遵循所有的应用单元测试。
Instead, zope.testing leaves it to each programmer to find the tests in each module that are worth running and put them together in a list.
相反,zope .testing让程序员自己寻找每个模块中需要运行的测试并把它们集中在一个列表中。
As a programmer, the practice (XP or otherwise) that has had the biggest impact is writing tests before I write code.
作为一位编程人员,受最大影响的实践(Practice)(XP或其它方面)是在我编写代码之前编写测试程序。
Jim, an application programmer, develops and tests the database manager application programs.
Jim是一位应用程序开发人员,他开发和测试数据库管理器应用程序。
The day might soon arrive when a Python programmer, simply by being familiar with these two tools, will be able to run the tests of most publicly available Python packages.
可能过不了多久,只要程序员熟悉这两种工具,就能够运行大多数公共python包的测试。
What makes TDD so effective is the automation of your programmer (unit) tests, and the great news is that the only tools you need are available for free on the Internet.
使TDD更加有效的原因是单元测试自动化,而且这些自动化单元测试的工具可以从Internet上免费获得。
Bill Venners: in Refactoring, you write: "I write tests to improve my productivity as a programmer." What about robustness, quality, and reliability?
比尔:在《重构》这本书中,你写道:“通过写测试,我提高了作为一个程序员的工作效率。”能谈谈对鲁棒性、质量和可靠性的影响么?
Here is a programmer that never designs, documents, or tests his programs.
有一个程序员,他从来不预先设计,也不写文档,甚至不测试他的程序。
Another specification that a programmer can provide for an interface is a suite of unit tests.
程序员可为接口提供的另一个规范是一套单元测试。
You might glance at the uncovered lines of code (possibly assisted by the programmer) to discover the kinds of tests you omitted.
你可以浏览未覆盖的代码行(可能是在程序员的辅助下)以发现你忽略的某种测试。
However, in practice, an experience programmer can produce a pretty good set of tests that will result in a high degree of confidence that the system is working correctly.
当然在实际中,一个有经验的程序员能够给出一个相当不错的测试集,通过测试的系统能够获得更高的正确运行的信任程度。
By giving these tests to the programmer early, the customer team has not only stated their expectations, they may also have reminded the programmer of a situation she had otherwise forgotten.
这些测试尽早交给程序员的好处是:现场客户不仅能尽早提出他们的期望,还能提醒程序员可能已经忘记的事情。
A novice asked the Master: "Here is a programmer that never designs, documents, or tests his programs. Yet all who know him consider him one of the best programmers in the world. Why is this?"
一个初学者问主管经理:“有一个程序员,他从来不预先设计,也不写文档,甚至不测试他的程序,但是知道他的人都认为他是世界上最伟大的程序员,为什么呢?”
A novice asked the Master: "Here is a programmer that never designs, documents, or tests his programs. Yet all who know him consider him one of the best programmers in the world. Why is this?"
一个初学者问主管经理:“有一个程序员,他从来不预先设计,也不写文档,甚至不测试他的程序,但是知道他的人都认为他是世界上最伟大的程序员,为什么呢?”
应用推荐