简体   繁体   English

从CLI测试ArangoDB Foxx应用

[英]Testing ArangoDB Foxx app from CLI

Currently, I'm running Mocha + Chai tests using Foxx web interface. 目前,我正在使用Foxx Web界面运行Mocha + Chai测试。 It works well but I'd prefer to use Mocha's command line interface if that's possible. 它运作良好,但如果可能的话,我宁愿使用Mocha的命令行界面。 Is there any way to do so? 有什么办法吗?

There's no way to run the mocha tests from the mocha CLI as they have to run in the context of the installed Foxx service whereas mocha is run using Node.js (or theoretically one of the other supported environments). 无法从mocha CLI运行mocha测试,因为它们必须在已安装的Foxx服务的上下文中运行,而mocha是使用Node.js(或理论上其他受支持的环境之一)运行的。

You can run the tests of a Foxx service using the foxx-manager tool available on the machine on which ArangoDB is installed. 您可以使用安装ArangoDB的计算机上可用的foxx-manager工具运行Foxx服务的测试。 We plan to eventually replace that tool with a node-based Foxx CLI you can run on any machine that has access to the database. 我们计划最终用基于节点的Foxx CLI替换该工具,您可以在可访问数据库的任何计算机上运行它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM