java - 如何使用 postman 测试获得代码覆盖率

标签 java rest sonarqube postman

我们在 RestEasy 中创建了 REST 服务,并在 wildfly 服务器中运行。我们正在运行 Postman 测试用例来测试 Rest URL。

有没有办法在我们执行 postman 测试套件时获得服务的代码覆盖率?

我们使用 SonarQube 来分析代码覆盖率。

最佳答案

我想不是,这里有人问过类似的问题: Generate Sonar code coverage report from Postman tests

楼主在下方评论道:

In fact, after a bit of googling, as a work-around we could use remote Jacoco agent hooked in the java application server. We'll try to run jacoco maven goals before and after the tests execution in order to generate jacoco coverage report. See: link I'll update the post if we have some progress.

另外,newman 似乎有一张票: https://github.com/postmanlabs/newman/issues/408

虽然这可能有帮助

关于java - 如何使用 postman 测试获得代码覆盖率,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39869204/

相关文章:

JavaFX ...是什么让我的 Controller 变慢?

java - 没有@Stateless 可以使用@Webservice 注解吗?

java - android.view.InflateException - 创建自定义 View 的问题

java - 使用 REST API 创建新站点

asp.net - 使用 ASP.NET Web API 作为图像服务

docker - 如何更改 Dockerfile 中文件的权限?

java - Android:如何播放 Mp3 声音作为通知?

node.js - 访问 url 参数时出现 Node Js api 404 not found 错误

java - 无法执行目标 org.sonarsource.scanner.maven 对于 Artifact {null :null:null:jar}: The groupId cannot be empty

maven - 将 sonarqube 与 Jenkins 集成