Your flutter tests are taking too long? Disable the code coverage!

Guilherme Torres Castro
1 min readFeb 15, 2019

We just recently upgraded our CI machines because the flutter test step was taking almost 25 minutes to run on CI. We have a little more than 500 unit tests + widget tests that shouldn't take this long, so after doing some research to identify why I found an issue which explains what is happening.

When you enable test coverage in flutter the tests takes up 10 times longer to execute as suggested in the issue. By the moment we will stick with the coverage (it help a lot in code reviews) and hope the issue is fixed soon enough. But if coverage is not vital for your project I recommend you to disable it.

--

--