Velocity is the Meteor testing solution. It is maintained by the community and is the test runner that is used by other frameworks such as meteor-jasmine and meteor-mocha-web
Questions tagged [meteor-velocity]
93 questions
9
votes
1 answer
How to use console.log in meteor jasmine tests
I'm using
Meteor 1.0.2.1
sanjo:jasmine 0.9.1
velocity:html-reporter 0.3.2
https://doctorllama.wordpress.com/2014/09/22/bullet-proof-internationalised-meteor-applications-with-velocity-unit-testing-integration-testing-and-jasmine/…

Bae
- 7,516
- 5
- 36
- 42
9
votes
1 answer
Debug Meteor Velocity Mocha tests
I want to debug my test using Velocity and Mocha, using breakpoints and REPL instead of console.logs.
For debugging my app code I can start my Meteor app with the NODE_OPTIONS='--debug' flag, and then bind the debugger like node debug…

Tomas Romero
- 8,418
- 11
- 50
- 72
8
votes
4 answers
Meteor / Jasmine / Velocity : how to test a server method requiring logged in user?
Using velocity/jasmine, I'm a bit stuck on how I should test a server-side method requiring that there be a currently logged-in user. Is there a way to make Meteor think a user is logged in via stub/fake ?
myServerSideModel.doThisServerSideThing =…

Petrov
- 4,200
- 6
- 40
- 61
6
votes
1 answer
How to generate test coverage report in Meteor / Velocity?
The Velocity documentation mentions test coverage as a primary feature of the framework, but I'm having a hard time finding specific instructions for getting started.
Is there support for test coverage reporting in Meteor / Velocity (either directly…

user456584
- 86,427
- 15
- 75
- 107
5
votes
1 answer
Requiring timeouts when testing Meteor with Velocity and Jasmine
Pretty new to meteor, velocity and jasmine so not sure if I am doing something wrong, using Jasmine for something it's not designed for, or this is just the way it works.
I am finding I need to set timeouts for pretty much all of my tests in order…

riebeekn
- 175
- 5
5
votes
2 answers
Starting Meteor with Velocity test without the Chrome pop-up
In my quest to gather knowledge about how to use Velocity, I ran across a snippet that mentioned a shell variable to set the browser Velocity used to run Karma in PhantomJS as apposed to creating a Chrome window pop-up each time I run my app in…

CodeChimp
- 8,016
- 5
- 41
- 79
4
votes
2 answers
Is there a way to wait for another WebDriverIO promise chain to finish?
I am trying to build a test step in Cucumber that will login a test user with a given role. My approach is to try to see is the Sign Out option is there and click it, then to try to login. The problem is that the promise structure doesn't…

CodeChimp
- 8,016
- 5
- 41
- 79
4
votes
1 answer
How do I fix this websocket connection error with Velocity?
I've tried out cucumber as well as jasmine with brand new projects, but all my tests are getting this failure. When I run:
$ meteor --test
I get:
stream error Network error: ws://localhost:3000/websocket: connect ECONNREFUSED
This failure comes…

paris
- 189
- 2
- 16
4
votes
1 answer
Velocity hangs with no errors when testing meteor app
I'm pretty new to meteor so I'm just writing a simple app but really want to make it as TDD as possible (worth mentioning I'm also new to Mocha). So I've added the mike:mocha and velocity:core packages and written a super simple initial test just to…

iteles
- 861
- 1
- 7
- 15
4
votes
2 answers
How to test Meteor packages since Meteor 1.0?
From what I understand, there are two major packages that help in testing a package - TinyTest, and Velocity, which became the official Meteor testing framework.
From the Meteor's DevShop in June, the Velocity team said that Velocity can run…

dayuloli
- 16,205
- 16
- 71
- 126
3
votes
0 answers
confusion about velocity's beforeEach setUp function in meteor
I'm trying to implement testing on my meteor application using velocity [1] and jasmine [2].
I defined a collection called 'object' (collections/object.js):
Objects = new Meteor.Collection('objects');
I implemented a set up function…

Ronin
- 7,322
- 6
- 36
- 54
3
votes
1 answer
Chimpjs and Meteor: method calls in tests without using Velocity
This app shows an example of testing Meteor with Cucumber:
https://github.com/mhurwi/cucumber-meteor-tutorial
It works well with Velocity. But my computer becomes very slow when starting an app with Velocity and I don't want it to always run when…

Victor Deplasse
- 682
- 6
- 10
3
votes
3 answers
shared test fixture for meteor velocity cucumber and jasmine
How do I share a fixture between my cucumber and jasmine test?
I can create a fixture with one jasmine server integration test that can be used with other jasmine server integration tests. But (due to different "mirrors" I guess?) I cannot use the…

Nathan Buesgens
- 1,415
- 1
- 15
- 29
3
votes
1 answer
how can I write unit test to my meteor methods?
I found it a little complicated, and more complicated if I wrote my meteor methods in /lib folder, that I want is to test from server test folder my methods (unit test), but stub this.userId and also debugging or showing logs in server side does not…

Zilev av
- 491
- 1
- 7
- 21
3
votes
2 answers
How to integrate meteor's velocity tests with jenkins?
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?

Tomas Romero
- 8,418
- 11
- 50
- 72