jmakeig / mltap

A JavaScript test harness for MarkLogic that (roughly) implements the Node.js tape API
Apache License 2.0
0 stars 0 forks source link

Fail fast on uncaught errors #39

Closed jmakeig closed 8 years ago

jmakeig commented 8 years ago

Tape adopts the Node philosophy exiting the process on any uncaught errors. It even removed the ability to log an uncaught error as a failure from the API. (tape-catch extends Tape to support this behavior.) mltap should do the same.

  1. Don’t catch errors in Test.prototype.run()
  2. Remove tape-catch in favor of just tape
  3. Verify that you get good stack traces to figure out exactly where the error is
jmakeig commented 8 years ago

Better stack traces from MarkLogic depend on marklogic/node-client-api#297.