wliamgho / TodoList

Simple TodoList using Viper Architecture with TDD

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TodoList

Build Status codecov

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 (View - Interactor - Presenter - Entity - Router)

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.

Screenshot 2019-12-09 at 20 00 55

TDD (Test-Driven Development)

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.

Built with

Using Xcode 11.1 and written with Swift 5.

Credit

Created by William

About

Simple TodoList using Viper Architecture with TDD


Languages

Language:Swift 100.0%