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 #15991

Closed
DartBot opened this issue Jan 9, 2014 · 3 comments
Closed

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

DartBot opened this issue Jan 9, 2014 · 3 comments
Labels
area-pkg Used for miscellaneous pkg/ packages not associated with specific area- teams.

Comments

@DartBot
Copy link

DartBot commented Jan 9, 2014

This issue was originally filed by @zoechi


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.

@lrhn
Copy link
Member

lrhn commented Jan 9, 2014

Added Area-UnitTest, Triaged labels.

@kevmoo
Copy link
Member

kevmoo commented Feb 12, 2014

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

@DartBot DartBot added Type-Defect area-pkg Used for miscellaneous pkg/ packages not associated with specific area- teams. labels Feb 12, 2014
@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

This issue has been moved to dart-lang/test#238.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-pkg Used for miscellaneous pkg/ packages not associated with specific area- teams.
Projects
None yet
Development

No branches or pull requests

3 participants