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 provided an introduction to Flutter widget tests and how they can be used to test widgets individually. We also looked at how they are structured with the WidgetTester
class in the testWidgets
function.
We also learned how to debug our app, first by looking at the debugging facilities of the IDE and then the method calls of debugging and assert.
Finally, we investigated how we can use Flutter’s 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!