Whether you are creating unit, widget, or integration tests for Flutter applications, the end goal of any test is asserting that the reality matches the expectations. Here is an ultimate cheat sheet for assertions in Dart and Flutter tests with many details explained!
Find the high-res image here.
And read all the details in these two posts:
- Assertions In Dart And Flutter Tests: An (Almost) Ultimate Cheat Sheet
- Assertions In Dart And Flutter Tests: An (Now For Sure) Ultimate Cheat Sheet
All the code is available on GitHub or in the interactive Zapp.
Hi! ππ» Iβm Anna, Google Developer Expert in Dart and Flutter. Follow me on Twitter, GitHub, YouTube, Medium to get notifications about my latest work.
Top comments (0)