配置NoseGAE以像开发服务器一样更新index.yaml
是否可以配置或修改 NoseGAE 插件,以便在测试中运行查询时自动更新 index.yaml(就像开发服务器那样)?我有 100% 的测试覆盖率,所以这将非常有用。
有人对这样的测试套件设置有任何运气吗?
Is it possible to configure or modify the NoseGAE plugin to automatically update index.yaml when queries are run in tests (like the development server does)? I have 100% test coverage so this would be quite useful.
Has anybody had any luck with such a testing suite setup?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你可以使用我的 Nose 插件,名为 nose-gae-index。它使用 SDK 中的内部 IndexYamlUpdater 类。
没有必要一直启用它。我在部署之前使用它并检查新提交引起的索引配置更改。
请记住不要在测试本身中使用需要索引的查询,否则它们也会被添加到配置文件中!
You can use my Nose plugin for this, called nose-gae-index. It uses the internal IndexYamlUpdater class from the SDK.
There is no need to have it enabled all the time. I use it before deployment and to inspect changes to index configuration caused by new commits.
Remember not to use queries that require indexes in the tests themselves, or they will be added to the configuration file as well!