Friends App Android Client Ep7 - TDD on Android Screencast

Опубликовано: 02 Май 2026
на канале: Jov Mit
803
35

In this video, we are test-driving the credentials validation as part of the signup business logic. We use regex to verify if the email and the password are valid as a sign up arguments

Blog: https://jovmit.io
Twitter:   / jovchem  

Timeline:
00:00 Intro
00:30 Working plan
02:15 The failing test for email validation
09:25 StateFlow vs SharedFlow vs LiveData
12:41 Test fails for the right reason
13:10 InstantTaskExecutorExtension for JUnit5
15:25 The email validation test goes green
16:55 Introducing parameterized test for a bad email
20:10 Failing test for a bad password detection
25:15 The password validation test goes green
25:50 Parameterized test for unacceptable password values
31:00 Refactoring time
43:30 Silly mistake on the way
45:00 Final touches