首页> 外文会议>International Conference on Fundamental Approaches to Soft ware Engineering >Logical Testing Hoare-style Specification Meets Executable Validation
【24h】

Logical Testing Hoare-style Specification Meets Executable Validation

机译:逻辑测试Hoare风格规格符合可执行验证

获取原文

摘要

Software is often tested with unit tests, in which each procedure is executed in isolation, and its result compared with an expected value. Individual tests correspond to Hoare triples used in program logics, with the pre-conditions encoded into the procedure initializations and the post-conditions encoded as assertions. Unit tests for procedures that modify structures in-place or that may terminate unexpectedly require substantial programming effort to encode the postconditions, with the post-conditions themselves obscured by the test programming scaffolding. The correspondence between Hoare logic and test specifications suggests directly using logical specifications for tests. The resulting tests then serve the dual purpose of a formal specification for the procedure. We show how logical test specifications can be embedded within Java and how the resulting test specification language is compiled into Java; this compilation automatically redirects mutations, as in software transactional memory, to support imperative procedures. We also insert monitors into the tested program for coverage analysis and error reporting.
机译:软件通常用单元测试进行测试,其中每个过程是以隔离执行的,其结果与预期值相比。单个测试对应于程序逻辑中使用的Hoare三元组,其中预处理编码到过程初始化和后部条件中被编码为断言。用于修改结构的程序或可能终止的程序的单元测试需要大量的编程工作来编码后兴,并且通过测试编程脚手架掩盖的后条件掩盖。 Hoare逻辑和测试规范之间的对应关系表明使用逻辑规范进行测试。然后,由此产生的测试为程序提供正式规格的双重目的。我们展示了如何嵌入Java中的逻辑测试规范以及将结果的测试规范语言编译为Java;此编译自动将突变重定向,如软件事务内存中支持势在必行程序。我们还将监视器插入测试程序以进行覆盖分析和错误报告。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号