Welcome to my simple TodoList app by using Viper Architecture with TDD implementation. In this case, i want to test how to code more clearer and testable.
Viper is an application of Clean Architecture. The main parts of Viper are:
- View represent as displays and giving the input to the Presenter.
- Interactor contains the business logic.
- Presenter represent as communicator between View (preparing content) and Interactor (processing logic).
- Entity contains model objects
- Routing represent as navigation logic for describing which screens are shown.
In simply, TDD starts with designing and developing test for each one of the features first. The goal of TDD is to make the code clearer, testable behavior, and bug-free. The cycle of perform TDD Test:
- Add a test
- Runs a test and see if any test fails.
- Write development code.
- Run test and Refactor.
- Repeat process.
Refactor means changing some code without affecting its behavior.
Using Xcode 11.1
and written with Swift 5
.
Created by William