🤖 AI Summary
本文介绍了一种名为RESTCov的工具,它通过解析OpenAPI规范和HTTP请求/响应日志来分析REST API的结构覆盖情况,解决了传统方法难以应用于分布式API的问题。
📝 Abstract
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