Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception in setUp() (UnitTest) is swallowed silently #238

Closed
DartBot opened this issue Jun 5, 2015 · 3 comments
Closed

Exception in setUp() (UnitTest) is swallowed silently #238

DartBot opened this issue Jun 5, 2015 · 3 comments
Labels
type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@DartBot
Copy link

DartBot commented Jun 5, 2015

<img src="https://avatars.githubusercontent.com/u/405837?v=3" align="left" width="96" height="96"hspace="10"> Issue by zoechi
Originally opened as dart-lang/sdk#15991


What steps will reproduce the problem?
1.
create a unit test with a setUp() which throws an exception
like calling a method on null
2.
run the test
3.
Output

processMessage(): unittest-suite-wait-for-done
processMessage(): unittest-suite-done
Calling notifyDone()

What is the expected output? What do you see instead?
stack trace is printed

What version of the product are you using? On what operating system?
Dart VM version: 1.1.0-dev.5.4 (Wed Jan 8 09:32:13 2014) on "linux_x64"

Please provide any additional information below.
When I enclose the code in setUp in try/catch I get the actual exception in the catch block.

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

<img src="https://avatars.githubusercontent.com/u/4865287?v=3" align="left" width="48" height="48"hspace="10"> Comment by lrhn


Added Area-UnitTest, Triaged labels.

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

<img src="https://avatars.githubusercontent.com/u/17034?v=3" align="left" width="48" height="48"hspace="10"> Comment by kevmoo


Removed Area-UnitTest label.
Added Area-Pkg, Pkg-Unittest labels.

@DartBot DartBot added the type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) label Jun 5, 2015
@nex3
Copy link
Member

nex3 commented Jun 6, 2015

This is for the old unittest package.

@nex3 nex3 closed this as completed Jun 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

2 participants