Testing Meteor packages with Velocity?

走远了吗. 提交于 2019-12-11 02:07:00

问题


Velocity is an amazing testing framework for Meteor and I am currently using it to test my application code.

Now I added a local package to the app, but I don't know how (or if) I can test the package with Velocity, too. I would like to drop tinyTest in favor for a consistent testing framework - Velocity.

Is it possible to test packages with Velocity? How should the file structure look like?


回答1:


Yes, it is possible to test packages with sanjo:jasmine. It works in nearly the same way as with TinyTest. You can find all information to get started in the sanjo:jasmine README. There is also an example package. To run the tests, use the commands from the README.

If you need additional information, let me know.



来源:https://stackoverflow.com/questions/30896700/testing-meteor-packages-with-velocity

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