arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2307.06922cs.SE
收藏

Crucible:用于 Alloy 模型的图形化测试用例

Crucible: Graphical Test Cases for Alloy Models

Adam G. Emerson, Allison Sullivan

AI总结:

针对 AUnit 仅支持文本场景规约的问题,本文提出 Crucible,支持图形化创建结构良好的 AUnit 测试用例并提供自动化指导。

摘要:

Alloy 是一种声明式建模语言,非常适合验证系统设计。Alloy 模型使用 Analyzer 进行自动分析,该工具集通过展示属性所产生的后果、帮助识别任何缺失或不正确的属性,并探索修改这些属性的影响,来帮助用户理解其系统。为实现这一点,Analyzer 调用现成的 SAT 求解器来搜索场景,这些场景是对模型的集合和关系的赋值,使得所有被执行的公式都成立。为帮助编写更准确的软件模型,Alloy 拥有一个单元测试框架 AUnit,允许用户勾勒特定场景,并检查这些场景是否被其模型正确生成或阻止。遗憾的是,AUnit 目前仅支持场景的文本规约。本文介绍了 Crucible,它允许用户以图形方式创建 AUnit 测试用例。此外,Crucible 为用户提供自动化指导,以确保他们创建结构良好、有价值的测试用例。因此,Crucible 减轻了采用 AUnit 的负担,并使 AUnit 测试用例的创建更符合与 Alloy 场景进行交互的常见方式,即图形化方式。

英文摘要:

Alloy is a declarative modeling language that is well suited for verifying system designs. Alloy models are automatically analyzed using the Analyzer, a toolset that helps the user understand their system by displaying the consequences of their properties, helping identify any missing or incorrect properties, and exploring the impact of modifications to those properties. To achieve this, the Analyzer invokes off-the-shelf SAT solvers to search for scenarios, which are assignments to the sets and relations of the model such that all executed formulas hold. To help write more accurate software models, Alloy has a unit testing framework, AUnit, which allows users to outline specific scenarios and check if those scenarios are correctly generated or prevented by their model. Unfortunately, AUnit currently only supports textual specifications of scenarios. This paper introduces Crucible, which allows users to graphically create AUnit test cases. In addition, Crucible provides automated guidance to users to ensure they are creating well structured, valuable test cases. As a result, Crucible eases the burden of adopting AUnit and brings AUnit test case creation more in line with how Alloy scenarios are commonly interacted with, which is graphically.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑