如何使用 Google Mock 测试 flutter 应用程序?

How can I test a flutter app using Google Mock?

我想测试一个 flutter 应用程序。而且最近听说了Google Mock,想学习一下。但首先我想知道我可以使用 Google Mock 测试我的 flutter 应用程序吗?

Gtest/Gmock 不用于 Dart,而是用于 C++(并且可以用于测试 C)。

改为使用内置框架的 Flutter 进行测试,并使用包进行模拟(例如 Mockito)。

查看 https://flutter.dev/docs/testing 了解更多信息。