Writing Tests and Setting Up GitHub Actions
Taking care of rebuilding widgets only when needed, using the latest version of each package, and following Flutter’s best coding practices will surely point you toward success. However, there’s more you need to take into account if you want your product to be of the highest possible quality. In this chapter, we’re going to provide an overview of how testing works in Flutter and which tools should you use to create rock-solid apps.
Other than writing tests, another important part of setting up is having a CI pipeline that automatically checks your code’s health, executes tests, compares results, and shows reports to the developer. For this reason, we will dive into GitHub to set up actions, PR templates, and much more.
After that, we’re going to take an existing project and improve it with unit, widget, and golden tests. Then, we will take care of the GitHub repository and make sure that all of our...