开发人员可以避开缺陷和测试代码。
It allows developers to hide from defects and from testing code.
底部的测试代码设置值并打印出新值。
The test code at the bottom then sets the value and prints out the new value.
底部的测试代码先删除数据库中的所有条目。
The test code at the bottom starts by deleting all the entries from the database.
清单10.viewport测试代码。
清单6显示用于检查性能的测试代码的主要部分。
Listing 6 shows the main parts of the test code I'll use to check out the performance.
万一这段测试代码里面有几十上百个定位器怎么办?
What if there are tens or hundreds of locators in the test code?
“后测试”将测试代码的粗糙功能,而非各个部分。
"Test after" tests your code's coarse-grained functionality, not the individual parts.
根据这个指标,TDD版本比后测试代码简单三倍。
Gauging by this measure, the TDD version is more than three times simpler than the test-after code.
看到了吗?这么多代码只是为了支持两行测试代码!
Look at all of the scaffolding that was necessary to support two actual lines of test code!
模仿对象用来单独测试代码逻辑的一部分。
Mock objects are used to test a portion of your code logic in isolation from the rest of the code.
可以在使用用户空间的QuickPlace中测试代码。
请注意,如果想要测试代码,您需要访问一个PHP处理器。
Please note that if you want to test the code you need access to a PHP processor.
在大多数情况下,简单的测试函数对测试代码来说已经足够了。
In most cases, simple test functions are more than adequate for testing code.
根据工程规范,使用建议步骤和JUnit框架开发测试代码。
Developed the test code according to the project specification using the Suggested steps and the JUnit framework.
质量:测试代码是找到你的程序中缺陷的最有效率的方法之一。
Quality: Testing code can be one of the most efficient ways to find defects in your application.
性能比较使用与之前文章相同的测试代码,即地震数据查询服务。
The performance comparisons use the same test code as earlier articles, a seismic data retrieval service.
支持使用真正的开发语言、真正的IDE来编写自动化测试代码。
Support writing test automation code using real languages, with real IDEs.
社区最大的好处就是它能够即时帮助我们测试代码以及发出反馈。
The biggest thing the community could do now is try to run their code under Rubinius and report their successes and failures.
需求团队可以查看什么需求被转化为运行,测试代码(参见图7)。
Requirements teams can see which of their requirements have been turned into running, tested code (see Figure 7).
对所有类进行专门测试后,还要为所有未覆盖的方法编写测试代码。
Once you partially test all the classes, write tests that cover any uncovered methods.
例如,必须在专门的测试代码中捕捉到占用大量资源的无限循环代码。
For example, code that might go into an infinite loop, or otherwise use excessive resources, must be wrapped in testing code that will detect such eventualities.
实际上,我建议您先通读一遍本文,然后再逐段地测试代码。
I'd actually recommend you read through the article once, and then work through the code, piece by piece.
这使得代码更具有表达力,但是你必须要升级旧的测试代码。
This change makes the syntax much more expressive, but you will have to update any tests written in the old style.
在设计和构建GWT应用程序时,您必须清楚不要依赖用户界面测试代码。
When designing and building GWT applications, you must think about testing the code without relying on user interactions.
例如,在这个服务器自身中运行这个测试代码,并且这个组件将在这里运行。
For instance, run the test code in the server context itself, where the component will be running.
无需在组件代码内包含测试代码,因为这很耗时且容易引发意外的软件问题。
No need to include testing code inside the component code which can be time consuming and lead to the unexpected introduction of software defects.
在测试所有的包之后,就可以对每一个显示为没有覆盖的类编写一些测试代码。
Once you have tested all packages a little, you can write some tests for each class that shows no coverage.
在方法开发项目中,没有必要编写和测试代码,但是仍然需要测试所有的连接。
There is no need to write and test code during a method development project, but there is still a need for testing all links and usage threads.
同时,在测试与以前类似的场景时,记录所有测试场景会创建重复的测试代码。
At the same time, recording all test scenarios can create duplicate test code when you're testing similar scenarios.
同时,在测试与以前类似的场景时,记录所有测试场景会创建重复的测试代码。
At the same time, recording all test scenarios can create duplicate test code when you're testing similar scenarios.
应用推荐