首页> 外文期刊>ACM transactions on sensor networks >Bringing Modern Unit Testing Techniques to Sensornets
【24h】

Bringing Modern Unit Testing Techniques to Sensornets

机译:将现代单元测试技术引入Sensornet

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

摘要

Unit testing, an important facet of software quality assurance, is under appreciated by wireless sensor network (sensornet) developers. This is likely because our tools lag behind the rest of the computing field. As a remedy, we present a new framework that enables modern unit testing techniques in sensornets. Although the framework takes a holistic approach to unit testing, its novelty lies mainly in two aspects. First, to boost test development, it introduces embedded mock modules that automatically abstract out dependencies of tested code. Second, to automate test assessment, it provides embedded code coverage tools that identify untested control flow paths in the code. We demonstrate that in sensornets these features pose unique problems, solving which requires dedicated support from the compiler and operating system. However, the solutions have the potential to offer substantial benefits. In particular, they reduce the unit test development effort by a few factors compared to existing solutions. At the same time, they facilitate obtaining full code coverage, compared to merely 57-72% that can be achieved with integration tests. They also allow for intercepting and reporting many classes of runtime failures, thereby simplifying the diagnosis of software flaws. Finally, they enable fine-grained management of the quality of sensornet software.
机译:单元测试是软件质量保证的重要方面,受到无线传感器网络(sensornet)开发人员的赞赏。这可能是因为我们的工具落后于其他计算领域。作为一种补救措施,我们提出了一个新的框架,该框架可以在sensornet中实现现代的单元测试技术。尽管该框架采用整体方法进行单元测试,但其新颖性主要在于两个方面。首先,为了促进测试开发,它引入了嵌入式模拟模块,该模块自动抽象出测试代码的依赖性。其次,为了自动化测试评估,它提供了嵌入式代码覆盖工具,这些工具可以识别代码中未经测试的控制流路径。我们证明,在传感器网络中,这些功能会带来独特的问题,而解决这些问题需要编译器和操作系统的专门支持。但是,这些解决方案有可能带来巨大的好处。特别是,与现有解决方案相比,它们将单元测试开发工作减少了几个因素。同时,它们有助于获得完整的代码覆盖率,而集成测试只能达到57-72%。它们还允许拦截和报告许多类的运行时故障,从而简化了软件缺陷的诊断。最后,它们可以对sensornet软件的质量进行精细的管理。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号