首页> 外文会议>1st ECOOP workshop on testing object-oriented systems 2010 >Testing Object-Oriented Programs using Dynamic Aspects and Non-Determinism
【24h】

Testing Object-Oriented Programs using Dynamic Aspects and Non-Determinism

机译:使用动态方面和非确定性测试面向对象的程序

获取原文
获取原文并翻译 | 示例

摘要

The implementation of unit tests with mock objects and stubs often involves substantial manual work. Stubbed methods return simple default values, therefore variations of these values require separate test cases. The integration of mock objects often requires more infrastructure code and design decisions exposing private data. We present an approach that both improves the expressiveness of test cases using non-deterministic choice and reduces design modifications using dynamic aspect-oriented programming techniques. Non-deterministic choice facilitates local definitions of multiple executions without parameterization or generation of tests. It also eases modelling naturally non-deterministic program features like IO or multi-threading in integration tests. Dynamic AOP facilitates powerful design adaptations without exposing test features, keeping the scope of these adaptations local to each test. We also combine non-determinism and dynamic aspects in a new approach to testing multi-threaded programs using co-routines.
机译:使用模拟对象和存根执行单元测试通常涉及大量的手动工作。存根方法返回简单的默认值,因此这些值的变体需要单独的测试用例。模拟对象的集成通常需要更多的基础结构代码和设计决策,以公开私有数据。我们提出一种方法,既可以使用不确定性选择来提高测试用例的表现力,又可以使用面向方面的动态编程技术来减少设计修改。非确定性选择有助于对多个执行进行局部定义,而无需参数化或生成测试。它还简化了集成测试中自然确定性的程序特性(如IO或多线程)的建模。动态AOP可以在不暴露测试功能的情况下进行强大的设计调整,从而使这些调整的范围保持在每个测试的局部。我们还将非确定性和动态方面结合在一起,以一种新的方法来使用协同例程测试多线程程序。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号