Skip to content

Better runtime errors #271

@alubbe

Description

@alubbe

If my test throws a runtime error, it gets printed as an AssertionError, which swallows the stack trace. For example,

var Promise = require("bluebird");
test("foo", Promise.coroutine(function*(t){
    throw new Error("asd");
}));

only prints

1. foo
  AssertionError: Promise rejected → Error: asd

It would be really helpful to get a stack trace here.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions