Open6

FlutterでFirebaseのテスト

TPTP

https://firebase.flutter.dev/docs/testing/testing/#integration-tests-using-the-firestore-emulator
真っ先に公式ドキュメントを確認。

https://firebase.flutter.dev/docs/testing/testing/#unit-tests-using-fakes
有志が作っているFakeを使えと書いてある。試したが、Firebase realtime databaseのモックは実装されていないメソッドが多く、割と使い物にならない。

公式が作っているEmulatorでやれないか。

TPTP

EmulatorはIntegrationTest用とは書いてあるが…

TPTP
Fatal error occurred: Emulator UI has exited with code: 1

このエラーが出てemulatorの起動ができなかったが、下記のIssueの解決方法で問題解消。
https://github.com/hokaccha/nodebrew

TPTP

じゃあFake使うしかないか…