For instance, run the test code in the server context itself, where the component will be running.
例如,在这个服务器自身中运行这个测试代码,并且这个组件将在这里运行。
If the unit test cases cannot be successfully completed, either due to bugs in the application or the lack of unit test code, then the application should not be accepted for performance testing.
如果单元测试案例因为应用程序中的错误或缺少单元测试代码而无法被成功完成,那么应用程序不应该被性能测试所接受。
What if there are tens or hundreds of locators in the test code?
万一这段测试代码里面有几十上百个定位器怎么办?
But forcing the public API to accommodate factory objects or abstract factories, just because the test code wants it to, is the wrong design.
但强迫公用api适应工厂对象或抽象工厂(只因为测试代码要求它这样)是错误的设计。
To test code that accesses hardware, you must write a piece of code that responds in a way similar to the hardware.
为了测试访问硬件的代码,必须编写一段按照与硬件相似的方式做出响应的代码。
The performance comparisons use the same test code as earlier articles, a seismic data retrieval service.
性能比较使用与之前文章相同的测试代码,即地震数据查询服务。
The performance test code first reads the documents to be used in the test into memory, then runs through a sequence of operations on the documents.
性能测试代码首先将测试中使用到的文档读入到内存中,然后对文档进行一系列的操作。
A set of command line tools that do the dirty work of setting up directory structures and creating initial production and test code.
一组命令行工具,用于进行设置目录结构和创建初始生产及测试代码的修改工作。
It reduces redundant test code and can enforce a standardized mechanism to perform some tasks and keep track of values returned by the API methods.
它减少了冗余测试代码,能够强制使用标准的机制执行任务,并且可以跟踪api方法的返回值。
At the same time, recording all test scenarios can create duplicate test code when you're testing similar scenarios.
同时,在测试与以前类似的场景时,记录所有测试场景会创建重复的测试代码。
Since this doesn't side-step patents, though, any issues relating to the test code that infringe on patents may still be a problem.
但这么做却无法回避专利问题,因此与这些侵犯了专利的测试代码相关的内容依然是个问题。
In VS2008 for example, we inserted comments into generated unit test code in order to help beginner users to understand the various components of a unit test.
例如在VS 2008中,我们在生成的单元测试代码里加入注释来帮助初学者理解一个单元测试的各个组成部分。
Because runtime compilation USES profiling data to guide its optimization, the JIT may well optimize the test code differently than it would real code.
因为运行时编译使用概要数据来指导优化,所以JIT对测试代码的优化可能不同于对实际代码的优化。
A strategy we used to pursue the "test code early and often" best practice was to involve developers in both feature verification and product verification (system-level) testing.
我们曾经提到的策略“尽早并经常地测试代码”是一项为开发者提出的最佳实践,无论是在特性验证还是产品的验证(系统级)测试中。
All application development efforts must provide a comprehensive unit test strategy and accompanying unit test code that can be executed to determine that the build is complete and functional.
所有应用程序开发工作必须提供全面的单元测试策略和附带的可被执行的单元测试代码以确定构建是完整的和有效的。
On the other hand, if the test code does any object allocation at all (and nearly all code does), it's going to create garbage, and eventually, the garbage collector is going to have to run.
另一方面,如果测试代码要进行对象分配工作(差不多所有的代码都要这样),那么垃圾收集器也肯定会运行。
Change in test code: a test case that you added to improve code coverage may be causing the slowdown, possibly exercising a peculiar portion that is vulnerable to speed.
测试代码的变更:您增加的用来改善代码覆盖率的测试用例可能导致变慢,也有可能这部分代码特别容易影响速度。
Typically, you will use the separation of concerns principle when you plan how you will divide and structure your test code for application-under-test features and behaviors.
通常,在您计划如何为被测试应用的特性和行为进行分离和组织测试代码时,您将会使用关注分离这个基本原理。
The short "code, test, code, test" cycle of TDD invites refactoring in these cases, which continually drives the development of uncomplex code.
在这些情况下,TDD的简短的 “代码、测试、代码、测试”循环将导致重构,而这将继续驱使非复杂代码的开发。
The output of each section of match test code is sorted, then added to the overall suggestion link list.
首先,对匹配测试各部分的输出进行排序,然后将其添加到总建议链接列表。
Response time breakdown shows you how much time was spent in each part of the system under test code as the system was exercised.
当这个系统运行时,响应时间细分数据为您显示了被测试系统的每一部分所花费的时间。
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.
在方法开发项目中,没有必要编写和测试代码,但是仍然需要测试所有的连接。
The test code at the bottom starts by deleting all the entries from the database.
底部的测试代码先删除数据库中的所有条目。
Typical tasks in his cycles are writing a test, code to pass the test, refactor the code, commit the changes.
每个周期内的典型任务包括写测试、让代码通过测试、重构代码、提交修改。
Test Implementer: the test Implementer writes the additional test code, runs the tests to validate the solution, then reports errors to the appropriate developer and tests the resulting fixes.
测试实现人员:测试实现人员将编写额外的测试代码,运行测试验证解决方案,然后将错误报告给相应的开发人员,并对修正后的代码进行测试。
Look at all of the scaffolding that was necessary to support two actual lines of test code!
看到了吗?这么多代码只是为了支持两行测试代码!
Listing 6 shows the main parts of the test code I'll use to check out the performance.
清单6显示用于检查性能的测试代码的主要部分。
The test code at the bottom then sets the value and prints out the new value.
底部的测试代码设置值并打印出新值。
Testing the form validation can also be done in the unit test (Listing 19 shows the form validation test code).
表单验证的测试也可以在单元测试中完成(清单19展示了表单验证的测试代码)。
This can make test writing simpler and less error-prone, and also result in test code that is shorter and more readable.
这会简化测试的编写并减少错误,还会使测试更简短、可读性更好。
应用推荐