App size for applications is very important. There are two dimensions to it: the download size — the size of the app on play store/when downloading/when installing and the install size — this is what happens when you download the app, unpack it, compile and optimize it. This expands the application significantly and can be two, three times or even more the install size. Why should you care about these sizes?
When a user goes to install an app say on play store, he sees the loading bar and then the actual app size. The larger the app, the greater the chances of a failed/cancelled download. …
Test Driven Development(TDD), is a discipline in software development that prohibits us from writing our code/implementation before writing the test first.
According to Uncle Bob, there are 3 rules for TDD:
1. You are not allowed to write any production code unless it is to make a failing unit test pass.
2. You are not allowed to write any more of a unit test than is sufficient to fail; and compilation failures are failures.
3. You are not allowed to write any more production code than is sufficient to pass the one failing unit test.
- Uncle Bob (http://butunclebob.com/ArticleS.UncleBob.TheThreeRulesOfTdd)
It is a cycle we have to iterate over. We write a test on something that we want to implement such that when the test is run, the result will be “fail” then we write an implementation that is just enough so that the test pass. We then fix our code quality which we may have overlooked since we were focusing on making the test pass without making the test fail. …
In my previous article, I talked about test-driven development(TDD) with Flutter which you can read here. This time around, we would try to set up for Travis-CI and integrate Flutter app with Coveralls, which will give us feedback on test coverage in your app.
I hope this guide helps you out 😀.
Create your flutter application and push it to GitHub/BitBucket/GitLab. For the purpose of this tutorial, I will be using the PiggyX application which is to demonstrate the concept of test-driven development in Flutter. …