问题
What are the recommended ways to test web applications developed with the meteor framework?
The meteor unofficial FAQ entry on TDD best practices is quite short.
回答1:
Sebastian Maier has a repository where he created a meteor app and tests it with Jasmine. You could check it out, here's a link.
回答2:
The Meteor documentation is woefully and/or intentionally silent on the subject of testing, other than this one quote:
Great care has been taken to give the core Meteor packages the minimal set of dependencies, so you can use your favorite templating, testing, or DOM manipulation frameworks.
So I guess you're free to test however you like, which is supposed to be a feature.
There are a number of fine testing tools that would be applicable to a Meteor webapp, Mocha being one example.
回答3:
With v0.9.4, released Oct 13, 2014, Meteor has an official test framework, meteor-velocity. It supports Jasmine, Mocha and Selenium.
meteor run --test
The architect behind Velocity has published a book, Meteor Testing.
See also http://velocity.meteor.com/
来源:https://stackoverflow.com/questions/10128768/how-can-meteor-apps-be-tested