Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我希望Jenkins运行 JavaScript 单元测试。
尽管我遇到了不同的 JavaScript 单元测试框架,例如Jasmine或Tape,但我找不到任何关于如何使它们工作并设置它们的输出以与 Jenkins 合作的文档。
任何人都可以向我指出 Jasmine、Tape 和其他单元测试框架的文档,解释如何正确配置它们以由 Jenkins 触发和评估?
关于詹金斯没有什么特别的。您需要像往常一样在 Jenkins 执行程序节点上安装测试库,然后您可以像在 Jenkins 作业中正常使用它们一样使用它们。请注意,这可能意味着npm install从您的 Jenkins 工作中调用 - 这是非常典型的;无论你使用的是 Python virtualenv、Ruby bundler 等,你都会做类似的事情。
npm install