Jenkins - SonarQube:无需浏览器的 Angular 测试覆盖业力替代方案

发布于 2025-01-19 10:13:26 字数 319 浏览 4 评论 0原文

我正在尝试找到与Jenkins和Karma一起生成Angular项目的覆盖范围报告的替代方法,问题之​​所以如此,是因为不允许在公司CI服务器中至少安装无头的浏览器找不到浏览器。

我知道有很多用于测试的框架,但我想请您在没有浏览器的情况下提供Sonarqube的覆盖范围报告。

I'm trying to find an alternative to generate a coverage report for an angular project with jenkins and karma, the problem comes because it is not allowed to install at least a headless browser in the CI servers of the company so Jenkins fails the job due no browser found.

I know there are a lot of frameworks for testing but I want to ask you for the best alternative for coverage report for sonarqube without browser.

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

殤城〤 2025-01-26 10:13:26

解决方案:在无法安装浏览器的管道中使用 Jest

Solution: Use Jest for pipelines where you cannot install a browser

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文