Chimpjs 和 Meteor:不使用 Velocity 的测试中的方法调用

2024-04-29

此应用程序显示了使用 Cucumber 测试 Meteor 的示例:https://github.com/mhurwi/cucumber-meteor-tutorial https://github.com/mhurwi/cucumber-meteor-tutorial

它与速度配合得很好。但是,当使用 Velocity 启动应用程序时,我的计算机变得非常慢,并且我不希望它在我开发时始终运行。所以我尝试使用 Chimp 作为 NPM 模块

chimp --ddp=http://localhost:3000

如此处建议的:https://chimp.readme.io/docs/getting-started-with-meteor-cucumber https://chimp.readme.io/docs/getting-started-with-meteor-cucumber

但是使用方法调用的测试(方法位于tests/cucumber/fixtures/中)不起作用:

Error: Method not found [404]

有谁知道我应该做什么才能使用命令行而不是 Velocity 运行 Cucumber 测试?

感谢您的帮助。

另一个小问题:Velocity 第一次启动时是否需要很长时间(我只进行了一些测试,它几乎冻结了我的计算机)还是每次都一样?


当运行 Chimp 对抗 Meteor 时,你不能放入固定装置tests/cucumber/fixtures,你必须使用fixture包模式,看这里:

https://meteor-testing.readme.io/docs/data-fixtures https://meteor-testing.readme.io/docs/data-fixtures

然后你可以使用调用装置server.call('xxx')从你的步骤定义

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Chimpjs 和 Meteor:不使用 Velocity 的测试中的方法调用 的相关文章

随机推荐