arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2608.28114cs.SE

RESTCov:REST API的结构覆盖率分析工具

RESTCov: A Tool for Structural Coverage Analysis of REST APIs

Tolgahan Bardakci, Serge Demeyer

首次发表
浏览论文内容

中文总结 AI 辅助

本文提出轻量级工具RESTCov,可基于OpenAPI规范和HTTP请求/响应日志计算REST API结构覆盖率,生成可读报告,用于检查覆盖率缺口、诊断不匹配问题及评估测试套件。

中文摘要 AI 辅助

REST API广泛应用于现代软件系统,但开发者和测试人员往往无法获知测试套件覆盖了API规范的哪些部分。传统覆盖率分析通常依赖源代码插桩,这对于分布式、由外部维护且仅能通过黑盒执行访问的REST API而言并不适用。本文提出RESTCov,这是一款轻量级工具,可根据OpenAPI规范和观测到的HTTP请求/响应日志计算REST API的结构覆盖率,报告路径、操作、参数、媒体类型、状态码及状态类别的覆盖率。RESTCov既生成机器可读结果,也生成人类可读的HTML报告,帮助用户检查覆盖率缺口、诊断规范-日志不匹配问题,并在无需访问实现的情况下评估REST API测试套件。演示视频:此URL,代码仓库:此URL

英文摘要

REST APIs are widely used in modern software systems, but developers and testers often lack visibility into which parts of an API specification are exercised by a test suite. Traditional coverage analysis usually relies on source-code instrumentation, which is impractical for REST APIs that are distributed, externally maintained, and hence accessible only through black-box execution. This paper presents RESTCov, a lightweight tool that computes structural REST API coverage from an OpenAPI specification and observed HTTP request/response logs, reporting coverage across paths, operations, parameters, media types, status codes, and status classes. RESTCov produces both machine-readable results and a human-readable HTML report, helping users inspect coverage gaps, diagnose specification-log mismatches, and evaluate REST API test suites without requiring access to the implementation. Screencast: https://youtu.be/mNz2P43OyUc Repository: https://github.com/2tolgahan2/RESTCov

↑