Skip to content

nodeunit should catch exceptions and report them as failures #155

Open

Description

@christophsturm

right now if a test throws an exception, the process just exits.

Activity

  1. nickminutello commented on Jun 25, 2012

    @nickminutello

    +1

  2. christophsturm commented on Jun 25, 2012

    @christophsturm
    Author

    btw we just switched to mocha, for this and other reasons.

  3. gilad61 commented on Aug 1, 2012

    @gilad61

    +1
    It happens only if the exception is thrown from an asynchronous callback.
    If the exception is thrown from a synchronous test flow the exception is caught and the test continues normally.

  4. gilad61 commented on Aug 1, 2012

    @gilad61

    See suggested fix in #177 (#177)

  5. jorgebay commented on Jul 19, 2013

    @jorgebay

    👍

  6. alexsolus commented on Jul 6, 2016

    @alexsolus

    Dealbreaker for me - uncaught exceptions are gonna be everywhere, tests need to be able to catch them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions