How can Meteor apps be tested? [closed]

折月煮酒 提交于 2019-12-02 17:01:09

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.

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.

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/

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!