Reputation: 2938
What's Meteor's story with respect to unit testing?
The example videos look great for building prototypes but I haven't seen any indication of how to write tests for it.
Upvotes: 2
Views: 289
Reputation: 41865
My guess is that you would use velocity
+ jasmine-unit
packages.
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:
Upvotes: 1
Reputation: 146
About the usage of tinytest, once you have watched the screencast proposed by Jeff Foster, and understood the idea, you may want to take a look at the APIS of both tinytest
and test-helpers
packages.
For now the only documentation available for tinytest
is at the bottom of the tinytest.js file
https://github.com/meteor/meteor/blob/devel/packages/tinytest/tinytest.js
The list of the helpers made available by the test-helpers
package can be looked at here: https://github.com/meteor/meteor/tree/devel/packages/test-helpers. There often is some documentation inside each file.
Digging in the existing tests of meteor's packages will provide lot of examples. One way of doing this is to make a search for Tinytest.
or test.
in the package directory of meteor's source code
Upvotes: 0
Reputation: 5273
Take a look at documentation of Laika testing framework : http://arunoda.github.io/laika/
Screencast with introduction to Laika done by its creator - Arunoda Susiripal: http://www.discovermeteor.com/2013/06/06/testing-meteor-apps-with-laika
Upvotes: 1
Reputation: 44706
For testing meteor packages, see Tinytest.
The testing story as a whole is captured on the official Trello board.
Upvotes: 1