How can Meteor apps be tested? [closed]

非 Y 不嫁゛ 提交于 2019-12-03 03:29:14

问题


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

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