Summary
In this chapter, we learned what smoke and golden tests are, as well as how to test behaviors with unit or widget tests. We also learned what golden files are – that is, PNG images that are used as a reference on how a widget must look. These must be tested against the same operating system.
Then, we created an automated workflow that checks our app’s formatting, whether we follow various analyzer rules, and ensures that all our tests run correctly. We also made sure that the overall coverage is above a certain threshold using the VeryGoodOpenSource/very_good_coverage
action.
You can also check your code coverage locally by either using your IDE or the genhtml
tool, which produces a series of HTML pages.
That’s all, folks! In this book, we tried to cover the most important Flutter topics, hoping they will help improve your skillset. We hope you’ve enjoyed reading this book as much as we did writing it!
Further reading
To learn more...