简体   繁体   中英

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

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 .

从setUp和tearDown返回Future的功能已经增加了几周,现在已经实现了从测试功能返回Future的功能。

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM