TDD in Flutter
Saturday 9th Apr, 2022
What is TDD? 1. Process of writing test cases before starting to build or develop an application. 2. To optimize the development process in terms of producing minimal bugs and reducing repetitive debugging and fixing processes. TDD Process It is iterative - Red, Green, Refactor Red Phase Writing test scenarios for features need to be created, Initially, it will return errors as the features/ widgets have not been created yet Green Phase The actual development of feature code/ creating up a widget is done.This step is done with or without optimal writing of code, It only ensures that the features are created and the test case is successful Refactor Phase Refactor/ optimize the code written both testing code and actual Folder structure, the Code pattern Domain layer, Data layer, Presentation layer Let’s code - atsign at_chat_flutter package demo Experiment much 1. Develop a simple UI only app and write test cases 2. Mockito - For writing unit tests with data 3. Practise TDD with clean architecture Thank you
Discussion

Be the first to post a message!