使用Velocity测试流星包? [英] Testing Meteor packages with Velocity?
问题描述
Velocity是Meteor的一个了不起的测试框架,我目前正在使用它来测试我的应用程序代码。
Velocity is an amazing testing framework for Meteor and I am currently using it to test my application code.
现在我在应用程序中添加了一个本地包,但是我不知道怎么(或者如果)我也可以用Velocity测试包。我想放弃tinyTest,支持一致的测试框架--Velocity。
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.
是否可以使用Velocity测试软件包?文件结构应该如何?
Is it possible to test packages with Velocity? How should the file structure look like?
推荐答案
是的,可以使用sanjo:jasmine测试软件包。它的工作方式与TinyTest几乎相同。您可以在 sanjo中找到所有信息。 :jasmine README 。还有一个示例包。要运行测试,请使用自述文件中的命令。
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.
这篇关于使用Velocity测试流星包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!