这样做不仅使代码变得更具可测试性,而且也使它不依赖于方法的全局变量。
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.
附带的好处是这些数据绑定框架在与适当的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.
在许多公司,需求覆盖或需求可溯性是测试过程的大焦点。
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.
尽管某些安全性和可测试性方面可以建模为策略,但并非所有都可以这样处理。
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.
图3显示双向可伸缩性测试的网络流吞吐量和系统cpu利用率,分别使用SUT中1、2和4个节点上的系统板载以太网适配器。
Figure 3 shows the network stream throughput and CPU utilization for the bidirectional scalability test runs while using the system board Ethernet adapters on 1, 2, and 4 nodes of the SUT.
几年来我一直建议开发人员使用DI,因为它提高了可维护性、可测试性和灵活性。
I've suggested for years that developers use DI, because it improves maintainability, testability, and flexibility.
图6显示双向可伸缩性测试的网络流吞吐量和系统cpu利用率,分别使用SUT中1、2和4个节点上的系统板载以太网适配器。
Figure 6 shows the network stream throughput and CPU utilization for the bidirectional scalability test runs while using the system board Ethernet adapters on 1, 2, and 4 nodes of the SUT.
用户还可能会审视实际的架构、仔细审阅其可测试性、可维护性、设计完整性、可复制性、避免独占等等。
Prospective users should also look at the actual architecture emitted and critically review it for testability, maintainability, design integrity, duplication, lock-in avoidance etc.
需求、设计以及代码和测试需求之间的可跟踪性非常有限。
There is limited traceability between requirements, design, and code and test requirements.
这个环境中使用的可伸缩性测试和测试方法与开箱即用配置相同。
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.
在使代码变得更具可测试性的过程中,我们对前面一些有问题的代码进行了重构;这些代码不仅设计上有问题,功能上也有问题。
In the process of making code testable, we've refactored previously problematic code; not only problematic in it's design but in it's function.
通过使用预包装的组件,我们已经影响了我们自己的解决方案的可测试性。
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.
元数据方法本身不会影响层的可测试性。
The metadata approach doesn't hamper the testability of the layers per se.
由此产生的灵活性无论是可测试性还是灵活性真的是非常值得。
The resulting flexibility really pays off both in testability and flexibility.
我们有多少测试是专注于性能,而不是其他类型的质量标准(性能、安全性、可伸缩性、可测试性、可维护性,等等)?
How much of our testing has been focused on capability rather than other types of quality criteria (performance, security, scalability, testability, maintainability, and so on)?
应用推荐