I made some changes to livedata and would like to run the livedata_test. How do you use tinytest to run the livedata_test?
7 Answers
After doing some digging, I've figured out that you may run meteor from the packages directory of your cloned meteor source.
Source: SFJS #23: Functional Programming and Meteor.js (this is actually a fantastic video in general).
- Switch to
... /meteor/packages/
- Run
meteor
- Navigate to
http://0.0.0.0:3000/
in the browser.
Tests for individual packages may be run by navigating to the specific package directory and following steps 2 and 3 above.
Presto:

- 6,766
- 5
- 35
- 44
-
1What was the error? Though I had not played with Meteor in a while, if you were to provide more constructive comments/criticism, you might get a more solid reply and additional information - even if it's not from me ;) – zealoushacker Dec 02 '13 at 16:12
-
The video is private. Is it available somewhere else ? – Benjamin Crouzier Jun 27 '14 at 20:09
-
This is no longer accurate. `You're not in a Meteor project directory.` – Ryne Everett Apr 17 '15 at 19:23
Might be worth nothing that you need to make sure you are running the dev "meteor" script from your working git directory. Simply running meteor will default to the system meteor in your path (if you have meteor installed) and will not pick up any changes to the tests / core code that you make.

- 311
- 5
- 3
Run meteor from in the directory of the package you want to test and view results in browser.

- 390
- 1
- 3
- 11
Velocity had been selected as the official testing framework for meteor 1.0. The announcement has been made in the last meteor devshop (june 2014).
Packages developed with velocity:
- velocity (the test runner)
- jasmine-unit (jasmine syntax)
- mocha-web-velocity (for testing collections)
- velocity-html-reporter (view the tests in the browser)

- 40,265
- 44
- 171
- 236
git clone git://github.com/meteor/meteor.git
cd meteor
./meteor test-packages <package>
Then navigate to http://localhost:3000/.

- 6,427
- 3
- 37
- 49
You have to pass it a driver package. This is how I ran them:
meteor test --driver-package practicalmeteor:mocha
Then check out the app and you should see a UI with the test results.

- 4,405
- 1
- 22
- 39