无头运行 Google Closure 测试套件

发布于 2024-10-06 11:00:59 字数 126 浏览 3 评论 0原文

我广泛使用 Google Closure 工具,并且希望能够在不启动浏览器的情况下运行我的单元测试,这既是为了提高速度,也是为了更轻松地与 Hudson 等持续集成工具集成。有什么建议吗?这可以用服务器端 JavaScript 来完成吗?

I am using Google Closure tools extensively, and would like to be able to run my unit tests without launching a browser, both for speed purposes and also for easier integration with continuos integration tools like Hudson. Any advice? Could this be done with server side javascript?

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

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

发布评论

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

评论(2

淡淡的优雅 2024-10-13 11:00:59

意识到 Google Closure 测试框架实际上并不能在没有 DOM 的情况下运行,因此,在服务器端运行这些测试并不是一个好主意。相反,我将使用 selenium 和框架的多个测试运行器在 CI 环境中运行测试。

Realized that the Google Closure Testing framework is not really ment to be run without a DOM in place, hence, that it was not a good idea to run these tests on the server side. Instead, I will use selenium and the frameworks' multiple test runner to run the tests in a CI environment.

成熟的代价 2024-10-13 11:00:59

渐渐地,我改用Jstestdriver,效果很好。

Gradually, I switch to Jstestdriver, and it works great.

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