How to integrate meteor's velocity tests with jenkins?

1k Views Asked by At

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?

2

There are 2 best solutions below

5
On BEST ANSWER

You should use:

meteor --test

meteor run --test

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

3
On

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