Nair
Nair

Reputation: 7458

Where does testing fit in meteor?

I am starting out in Meteor. Coming from Angular world, Just curious, I did not see any kind of testing (TDD) in meteor. Is there something I missed somewhere?

Upvotes: 0

Views: 120

Answers (1)

David Weldon
David Weldon

Reputation: 64312

As of this writing, there isn't an officially defined way to do testing in meteor. The best solution I have found is to use the mocha-web package, which gives you client-side testing via the mocha framework with chai assertions. Once you get everything installed you can just define a route on your app (e.g. /test) that runs your tests and gives you a nice pass/fail summary. Because it runs on the client, you get the benefit of being able to write tests which use session variables, validation, etc. However, that also means you can't (as far as I know) run something like make test and have your results print on the console.

Update 6/4/2013:

Here are some more resources you may want to check out:

Upvotes: 2

Related Questions