~/talk

Road to 100% test coverage: myth or reality

Talkat Fluttercon Europe 2023 · 2023-07-05..07-07· [testing, flutter]
links:none on file
slides:none on file

Claim: Very Good Ventures enforces 100% coverage and shows how to get there by fixing architecture, using dependency injection, and writing unit, widget and bloc tests. Tools used include mocktail (no codegen), bloc_test, a Very Good CLI plus an lcov-style reporter. Example app hits the Rick and Morty API with a client→repository→bloc→view stack, tests mock 200 vs non-200 responses, verify thrown exceptions and UI states, and the result is full coverage and higher deployment confidence.

AI-written summary · about

  1. 0:00Introduction and agenda
  2. 1:08Why testing matters
  3. 3:14Architecture and testing challenges
  4. 6:41Code coverage explained
  5. 9:12Why 100% coverage
  6. 11:24Three-layer architecture
  7. 13:51Unit test basics
  8. 16:19Mocking dependencies
  9. 18:45Widget testing basics
  10. 19:29Demo app overview
  11. 20:35Testing API client
  12. 23:23Mocking API responses
  13. 24:45Async test verification
  14. 26:53Testing repository layer
  15. 28:41Testing BLoC state management
  16. 30:24BLoC test scenarios
  17. 32:11Testing UI with widget tests
  18. 33:33Page view architecture
  19. 36:05Q&A and resources
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.