There are many packages to make screenshot tests in Flutter. I've been using the first-party Flutter tool. See https://api.flutter.dev/flutter/flutter_test/matchesGoldenFile.html. Basic usage As explained, it's pretty straightforward. You write your expectation as: await expectLater(find.byType(MyWidget), matchesGoldenFile('goldens/my_widget.png')); Then
Mocking http.Client is well documented, yet it didn't go as smoothly as expected. I'm following the guide at https://docs.flutter.dev/cookbook/testing/unit/mocking#3-create-a-test-file-with-a-mock-httpclient. My first change compared to the doc is that I did not import http as http, because I don't have any conflict.
On the blog post describing the release of Flutter 2.8 (see https://medium.com/flutter/whats-new-in-flutter-2-8-d085b763d181), they introduced flutterfire_ui. This library provides standard UI for signing in with Firebase Auth. The post is a bit long cause I ran into a few issues. If you are not interested
I've recently published a few packages to help write unit tests for Flutter apps that use Firebase. This includes Firestore, Firebase Storage, Firebase Authentication with Google Sign In. Quick links to the packages * https://pub.dev/packages/cloud_firestore_mocks * https://pub.dev/packages/firebase_storage_mocks * https://pub.dev/