DroidKaigi 2020 - Widget and Integration Testing in Flutter / JB Lorenzo [EN]

Опубликовано: 19 Март 2025
на канале: DroidKaigi
741
2

Automated Testing is essential to making your apps production-ready and to prevent introducing bugs when you change something. Flutter is an interesting case for testing because it is cross-platform. You should be writing also just one test for all your platforms making it easier to maintain.

Flutter offers three types of tests, unit, Widget, and integration tests. We will focus on widget and integration testing. Widget testing is new for Flutter, coming from Android and iOS. Integration testing is also something you want to make sure your app does not have issues running on iOS or Android.

When you do tests, you mock your dependencies and the network responses and requests. We will discuss how to mock your dependencies and network requests to have a stable test suite. Also, sometimes you also use plugins for Flutter that are using platform-specific code. Examples for these are Firebase Authentication and Firebase Database. We'll discuss how to mock these plugins so you can write widget and integration tests.

Of course, when doing automated tests, you also think about CI/CD. We will also discuss which services you can use to run your tests and how to set up your tests for CI/CD.

The names of products and services in the video may be trademarks of the respective companies. / 動画に掲載されている商品またはサービスなどの名称は、各社の商標または登録商標です。

-----------------------------------------------------------------------------------------------------------------

DroidKaigiはエンジニアが主役のAndroidカンファレンスです。
Android技術情報の共有とコミュニケーションを目的としています。
DroidKaigi 2020は残念ながら中止となりましたが、スピーカーの方々にご協力いただき発表される予定だった内容を収録・公開しています。

DroidKaigi is a conference tailored for Android developers.
Unfortunately, DroidKaigi 2020 was cancelled, but we publish the recordings of sessions.

DroidKaigi 2020 - https://droidkaigi.jp/2020/
DroidKaigi 2019 - https://droidkaigi.jp/2019/
DroidKaigi 2018 - https://droidkaigi.jp/2018/
DroidKaigi 2017 - https://droidkaigi.github.io/2017/
DroidKaigi 2016 - https://droidkaigi.github.io/2016/
DroidKaigi 2015 - https://droidkaigi.github.io/2015/
DroidKaigi Twitter -   / droidkaigi