如何获得针对 swagger ui 的 api 测试覆盖率 [英] How to get the api test coverage against swagger ui

查看:58
本文介绍了如何获得针对 swagger ui 的 api 测试覆盖率的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从我的空手道测试脚本中针对 swagger UI 或 JSON 文件获取 API 测试覆盖率.谁能指导我如何获得测试覆盖率?

I would like to get the API test coverage from my karate test scripts against swagger UI or a JSON file. Could anyone guide me on how to get the test coverage?

推荐答案

这是一个非常模糊的问题.我会说只是使用标签.维护标签的 JSON 映射到您的自定义需求(Swagger 或其他任何东西).编写一个小程序,从并行运行器返回的 Results 对象生成覆盖率报告.如果您有更具体的问题,请提出新问题.

This is a very vague question. I would say just use tags. Maintain a JSON mapping of tags to your custom needs (Swagger or anything else). Write a small program to generate your coverage report from the Results object returned from the parallel runner. If you have more specific questions ask a new one.

这篇关于如何获得针对 swagger ui 的 api 测试覆盖率的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆