Summary
In this chapter, we learned about unit testing Dart so that we can be confident that our library functions are following the requirements under a range of data inputs.
We saw an introduction to Flutter widget tests and how they can be used to test widgets individually. We looked at how they are structured with the WidgetTester
class in the testWidgets
function.
We also saw how to debug our app, first by looking at the Dart Observatory and the method calls of debugging and assertions, and then by using the debugging facilities of the IDE.
Finally, we investigated how we can use Flutter DevTools to explore the widget tree in debug mode and application performance in profile mode.
In the next chapter, we will finish the journey of our app by looking at how we can release it into the world for everyone to use!