针对 zc.recipe.testrunner 运行非蛋化产品
我有一些旧产品仍然可以与 Plone 4.1 一起正常工作,
这些产品之前使用 bin/instance test
命令运行了单元测试。 由于产品很旧,因此它们没有包装为 Egg,而是通过 products
buildout 指令使用。
zc.recipe.testrunner
是否以某种方式找到这些产品并且能够执行它们的单元测试?
I have some old products which still work fine with Plone 4.1
These products have unit tests run earlier with bin/instance test
command.
Since the products are old, they are not packaged as eggs, but used thru products
buildout directive.
Does zc.recipe.testrunner
somehow find these products and is it able to execute their unit tests?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不可以,
zc.recipe.testrunner
无法运行非蛋化产品。我认为蛋化你的产品而不是尝试一些炼金术会花费更少的时间。No,
zc.recipe.testrunner
can't run non-eggified products. I think it would take less time to eggify your products rather then trying some alchemic trick.如果您确实确实需要这样做,请将以下内容添加到您的测试运行程序部分:
这应该被视为最后的手段,并且在几乎所有情况下,最好创建一个合适的鸡蛋来替换产品。
If you really, really need to do this, add the following to your testrunner section:
This should be considered a last resort and in almost every case, it is preferable to create a proper egg to replace the product.