You guys have seen this screen multiple times in your app development journey.
This is due to some code not working as it was supposed to. Or that you have missed handled some of the code. Altogether this is terrible behaviour which will push users to delete the application.
So how can we Prevent it? The answer is simple, fix the bug right?
Well, it’s not that simple. To fix the bug it’s very important to actually find the bug. This is when testing comes into play. The more you test your app, the more bugs you can find to fix and make your app bug free.
Adding more features also adds unnecessary bugs. Hence we should test apps from time to time as we do not want the application to crash in production.
In this blog series, you will learn how you can test your Flutter app, different kinds of tests in Flutter, the amount of code you test covers and generate Goldens (UI Snapshot) to test the UI changes that take place in the app.
This series will be divided into multiple sections making it easier to follow and jump to required the section as per your requirement. We will be Testing a Todo Application — The application does an HTTP request to fetch todos and displays them on the list. I would suggest following the tutorial from the start so it will be easier to understand and follow along
Ways of Testing an App ( Brief — just key point)
There are two ways you can test your app.
Disadvantages of Manual Testing
Advantages of Automated testing
CMDE table lets us know the values we get from each test. As you can see,
Which Tests To Run When (Non-TDD approach)
This is a general introduction to Tests and Testing in Flutter. In this article, you got an overview of different kinds of tests and their use cases. In the next blog, we will start with setting up our test project and writing our first Unit Test.
Thank You for reading my blog, if you have any doubts or recommendations please let me know in the comment section below. I would like to know what are the other way to globally listen to network connectivity.
You have 50 Claps per day. Claps do Motivate us to keep writing. Gotta Use Them All