Blocs are meant to hold logic and, as proper programmers, we should probably write some tests to verify whether or not the logic is correct. If you follow test-driven development, writing tests is even more crucial. There’s one problem though - testing Blocs requires a lot of boilerplate.
The bloc_test package sets out to solve this issue by providing abstractions even for testing! No more dealing with classic Streams.
#flutter #dart #testing #developer