-
Concepts
-
Unit test
A unit test tests a single function, method, or class.
- example
-
-
widget test
-
intergration test
Assignment:
write unit test and widget test and intergration test for counter demo
-
Bloc test
https://bloclibrary.dev/#/testing
https://blog.codemagic.io/flutter-unit-testing-bloc-with-codemagic/
-
Introduce Mockito library
Monk: stub
Fake: override
-
Library test
https://github.com/brianegan/flutter_architecture_samples/tree/master/todos_repository_simple
-
TDD example
https://resocoder.com/category/tutorials/flutter/tdd-clean-architecture/
-
mobile 2.0 example
Assignment:
write bloc test for the following project
https://bloclibrary.dev/#/fluttertimertutorial
Code coverage:
1. 100%
- mockito mock ticker