This question shows research effort; it is useful and clear
2
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
我能找到的每个小部件测试示例都让您编写带有签名的方法testWidgets('name of the test', (WidgetTester tester) async。测试框架的某些要求是否始终需要该async部分,或者仅当您await在方法主体中的某处使用或进行 Future 调用时才需要该部分?