14

I made some changes to livedata and would like to run the livedata_test. How do you use tinytest to run the livedata_test?

joshrtay
  • 390
  • 1
  • 3
  • 11

7 Answers7

8

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).

  1. Switch to ... /meteor/packages/
  2. Run meteor
  3. 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: meteor test suite

zealoushacker
  • 6,766
  • 5
  • 35
  • 44
6

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.

boundsj
  • 311
  • 5
  • 3
4

Run meteor test-packages, then point your browser at http://localhost:3000 .

2

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

joshrtay
  • 390
  • 1
  • 3
  • 11
2

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:

Benjamin Crouzier
  • 40,265
  • 44
  • 171
  • 236
1
git clone git://github.com/meteor/meteor.git
cd meteor
./meteor test-packages <package>

Then navigate to http://localhost:3000/.

Ryne Everett
  • 6,427
  • 3
  • 37
  • 49
1

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.

toddmetheny
  • 4,405
  • 1
  • 22
  • 39