2
votes

Currently, I'm running Mocha + Chai tests using Foxx web interface. It works well but I'd prefer to use Mocha's command line interface if that's possible. Is there any way to do so?

1

1 Answers

3
votes

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).

You can run the tests of a Foxx service using the foxx-manager tool available on the machine on which ArangoDB is installed. 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.