Reputation: 11171
I need to start an external process for some tests, and it requires some async calls. Right now I can start and stop the process in each test, but under a failure I really need a proper tearDown
.
Upvotes: 4
Views: 302
Reputation: 61
The ability to return Futures from setUp and tearDown was added a couple of weeks back, and the ability to return a Future from a test function was committed today.
Upvotes: 2
Reputation: 5030
Justin, what you're asking for doesn't exist. I see that you've created this bug (http://code.google.com/p/dart/issues/detail?id=7670&q=async%20setup&colspec=ID%20Type%20Status%20Priority%20Area%20Milestone%20Owner%20Summary#makechanges). That's the best we can do for now.
Upvotes: 0