1
0
Fork 0
arangodb/js/common/tests
Alan Plum cfa0e0db55 Better foxx errors (#6264)
* Fix codeFrame formatting

Pushing the codeFrame first results in ugly line breaks or extra spaces.

* Include cause in MODULE_FAILURE message

The error is always a wrapper for an underlying cause so it should be easier to determine what caused it.

* Add a codeFrame for failed _install

We normally only want this in dev mode but service CRUD should always provide detailed info.

* Expose codeFrame in Foxx CRUD

The codeFrame can only come from a failed _install, so let's make it visible to Foxx CLI and friends.

* Add codeFrame to runScript

Scripts can also only be executed with access to the Foxx API so we can provide the same info as during CRUD.

* Trim codeFrame fileName to basePath

If we have a basePath, we don't need to expose the full path to the user for the codeFrame to be meaningful.

* Fix getReadableName

Previously 'catch-fire' would become 'Catch  Ire'.

* Add to changelog
2018-08-28 14:36:33 +02:00
..
aql Move testInTokensFilterSortTFIDF test to nondetermenistic module. (#6246) 2018-08-27 15:50:28 +03:00
http Feature/schmutz plus plus (#5972) 2018-08-24 12:15:35 +02:00
replication S2 based Geo-Spatial index (#5249) 2018-05-02 23:54:41 +02:00
shell Better foxx errors (#6264) 2018-08-28 14:36:33 +02:00
README
countries.json
execute-infinite-shortest-path.js
execute-nothing.js

README

Conventions for testing framework:
==================================

All files in the directory "shell" and ends with ".js" automatically
take part in client and server shell tests (targets "shell_client" and
"shell_server" and "shell_server_only").

If the filename contains the string "-cluster", then it is only
executed when testing in cluster mode. If the filename contains the
string "-noncluster", then it is only executed when testing in single
instance mode.

If the filename contains the string "-disabled", then it is not
executed at all. This is for tests that cannot be run from the
JavaScript test framework and have to be run from the Makefile.