12

Testing and Debugging

Flutter provides great tools to help developers manage their app development and ensure that it is ready for production – from a test API to IDE tools and plugins. This is especially crucial in app development where, unlike in some scenarios such as web pages, a bug fix can take several days to be reviewed by the relevant store, and then be updated on user devices.

In this chapter, you will learn how to add tests to identify bugs within your app, use debugging tools to identify where an issue is within your code, profile your app performance to find bottlenecks, and inspect UI widgets.

We will start this chapter by exploring how you can unit test your Dart code. This can be useful if you create a reusable library of ...

Get Flutter for Beginners - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.