Chapter 11: Testing and Debugging
Flutter provides great tools to help the developer 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 the UI widgets.
We will start the chapter with an exploration of how you can unit test your Dart code. This can be useful if you create a reusable library of functions that you are using across many apps and want to ensure that any changes to the library code continue to function as intended.
The following topics will be covered in this chapter:
- Unit testing...