这样做不仅使代码变得更具可测试性,而且也使它不依赖于方法的全局变量。
Doing this not only has made the code more testable, but also made it not depend on the global variables in the method.
然而,遗留代码几乎不考虑可测试性,因此,您必须消除这样的阻碍。
However, testability has rarely been a consideration for legacy code, and consequently, you have to pull stunts like this one.
分析师对确定需求的可测试性负责,而且我们还要明确对测试的需求。
Analysts are responsible for making sure that requirements are testable, and that we specify clear requirements for the tests to be performed.
确保在项目开始时创建可测试性表格。
Be sure to create a testability matrix in the beginning of the project.
附带的好处是这些数据绑定框架在与适当的GUI设计模式结合使用时能够提高可测试性。
As an added benefit, they can also increase testability when combined with proper GUI design patterns.
InfoQ:OS Workflow如何确保应用程序的可测试性?
InfoQ: How does OSWorkflow enable testability of an application?
字段注入会影响可测试性,特别是将字段标记为private时。
Field injection harms testability, especially if you mark the fields private.
另一个主要的优点是获得应用程序可测试性。
到目前为止,所给出的模式都在暗示臃肿的代码(长方法、太多的public方法、过多的条件和导入,等等)将影响可读性、可测试性和可维护性。
By now, a pattern has emerged suggesting that gluttonous code (long methods, too many public methods, excessive conditionals and imports, etc.) impairs readability, testability, and maintainability.
“通过Guice进行依赖项注入”(NicholasLesiecki,developerworks, 2008年10月):DI提高了可维护性、可测试性和灵活性,Guice使DI变得很简单。
"Dependency injection with Guice" (Nicholas Lesiecki, developerworks, December 2008) : DI improves maintainability, testability, and flexibility, and Guice makes DI easy.
这就会降低测试对象的可识别性。
那是他们进行可伸缩性和性能测试的全部方法。
That was their entire approach to scalability and performance testing.
在许多公司,需求覆盖或需求可溯性是测试过程的大焦点。
In many companies, requirements coverage or requirements traceability is a big focus of the testing process.
客户期望管理、IT交付流程的效率、端到端可跟踪性测试和未来的重用也都存在问题。
Client expectation management, efficiency of the it delivery process, end-to-end traceability, testing, and future re-use are also problematic.
例如,需求可能迅速地变更,这可能会破坏可测试性或测试成本设想。
For instance, requirements might change rapidly, which might undermine testability or test cost assumptions.
尽管某些安全性和可测试性方面可以建模为策略,但并非所有都可以这样处理。
Though certain aspects of security and testability can be modeled as policies, not all can.
事情像以前一样工作,但是工作得更好,主要是因为增强的可测试性或者明显的性能提升。
Things work as they did before, albeit better, most often because of enhanced testability or an apparent performance improvement.
几年来我一直建议开发人员使用DI,因为它提高了可维护性、可测试性和灵活性。
I've suggested for years that developers use DI, because it improves maintainability, testability, and flexibility.
用户还可能会审视实际的架构、仔细审阅其可测试性、可维护性、设计完整性、可复制性、避免独占等等。
Prospective users should also look at the actual architecture emitted and critically review it for testability, maintainability, design integrity, duplication, lock-in avoidance etc.
这个环境中使用的可伸缩性测试和测试方法与开箱即用配置相同。
The scalability tests and test methodology used in this environment are the same as in the out-of-the-box configuration.
通过提供横跨多个服务消费者和提供者之间的单一、统一的日志,它同样也简化了维护并改善了可测试性。
It also simplifies maintenance and improves implementation testability by providing a single, unified log that spans between multiple service consumers and providers.
接下来重复双向可伸缩性测试。
我们还了解了这些代码的修改不仅能够提高代码的可测试性,也能够普遍改进代码的质量,以及提高重构代码的可重用性。
We also saw how making these changes to your code not only made the code more testable, but also improved the code quality in general and promoted code reuse in the refactored code sections.
可测试性与可行性直接相关,并且很可能找到很难测试的高层次需求。
Testability relates directly to feasibility, and it may be possible to find high-level requirements that might be quite difficult to test.
有时候策略与SOA 活动的安全性及可测试性会产生混淆。
Sometimes policy is confused with security and testability of an SOA initiative.
通过使用预包装的组件,我们已经影响了我们自己的解决方案的可测试性。
By consuming pre-packaged components, we've influenced the testability of our own solutions.
这个环境中使用的可伸缩性测试和测试方法与开箱即用配置相同。
The scalability tests and test methodology used in this environment are the same as that used in the out-of-the-box configuration.
将方面编写为可测试的,得到的设计好处与通过重构面向对象的代码来实现可测试性所得到的好处相似。
Writing aspects to be testable yields design benefits parallel to those achieved by factoring object-oriented code for testability.
这对可测试性和灵活性方面有很大的影响。
This has a big impact for both testability and flexibility of the resulting code.
元数据方法本身不会影响层的可测试性。
The metadata approach doesn't hamper the testability of the layers per se.
应用推荐