Is there a way to write async setUp and tearDown to unittest.dart?

I need to start an external process for some tests, and this requires some asynchronous calls. Now I can start and stop the process in each test, but if it tearDown I really need the right tearDown .

+4
source share
2 answers

The ability to return futures from setUp and tearDown was added a couple of weeks ago, and the ability to return the future from a test function was fixed today.

+2
source

Justin, what are you asking for does not exist. I see that you created this error (http://code.google.com/p/dart/issues/detail?id=7670&q=async%20setup&colspec=ID%20Type%20Status%20Priority%20Area% 20Milestone% 20Owner% 20Summary # makechanges). This is the best we can do now.

0
source

All Articles