How to integrate meteor's velocity tests with jenkins?

↘锁芯ラ 提交于 2019-12-12 15:53:16

问题


On Velocity's GH page it mentions "easy CI integration" as one of the benefits, but I haven't seen any documentation about it.

How can I integrate Velocity with Jenkins?


回答1:


You should use:

meteor --test

meteor run --test

This does the same thing as the velocity-ci without the extra installation




回答2:


You could try the velocity-ci

velocity-cli

NPM module for running your velocity test suites from the command-line

Installation

npm install -g velocity-ci

Run

From inside your project directory type velocity

How it works

The velocity-cli spawns a meteor process and connects to it using DDP. PhantomJS connects to the meteor process to trigger client side tests. Test results received via DDP are printed at the console. This process exits with the appropriate exit status code.

So the build step would be velocity inside the meteor directory



来源:https://stackoverflow.com/questions/25559613/how-to-integrate-meteors-velocity-tests-with-jenkins

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!