Skip to content
This repository has been archived by the owner on May 28, 2022. It is now read-only.

Throwing error in group gets ignored #3

Closed
mhevery opened this issue Apr 10, 2013 · 2 comments
Closed

Throwing error in group gets ignored #3

mhevery opened this issue Apr 10, 2013 · 2 comments
Assignees

Comments

@mhevery
Copy link

mhevery commented Apr 10, 2013

main() {
  group('x', () {
    //TODO(karma): throwing error here gets ignored
    throw new Error();

    setup(() {
      //TODO(karma): throwing error here gets ignored
      throw new Error();
    }); 

    teardown(() {
      //TODO(karma): throwing error here gets ignored
      throw new Error();
    }); 

    test('x', () {
      // This test does not run, but no error is reported.
    }):
  });
}
@pavelgj
Copy link
Contributor

pavelgj commented Apr 11, 2013

Yes, it appears the "uncaught" errors are caught by unittest and are reported via onSummary method in config. I'll need to override it and send uncaught errors to karma. Thanks for reporting this.

@pavelgj
Copy link
Contributor

pavelgj commented Apr 26, 2013

FYI, pushed fixed package (version 0.1.3@canary), so just update your karma-dart npm. It also added support for logMesage (#5).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants