개발/Android

Kodeco Android TDD Chapter 12

MiJey 2023. 1. 30. 14:17

https://www.kodeco.com/books/android-test-driven-development-by-tutorials

 

Android Test-Driven Development by Tutorials

Learn Test-Driven Development on Android! Writing apps is hard. Writing testable apps is even harder, but it doesn’t have to be. Reading and understanding all the official Google documentation on testing can be time-consuming — and confusing. In this b

www.kodeco.com

레거시 프로젝트의 문제

  • 유닛 테스트, 통합 테스트 없음
  • 테스트가 어려운 아키텍처 (MVVM, MVP, MVI 등이 제대로 적용되어 있지 않음)
  • 높은 결합도 (거의 샴쌍둥이)
  • 낮은 응집도 (거의 사혼의 구슬조각)
  • 복잡한 내부 종속성
  • 복잡한 외부 종속성 (라이브러리 등)
  • 문서화되지 않은 기능과 수많은 엣지 케이스들

레거시 프로젝트에 테스트 도입하기

  • E2E 테스트 부터 작성한다 (에스프레소)
  • 프로젝트를 처음부터 다시 작성한다 (최후의 수단)

추천 도서: https://www.oreilly.com/library/view/working-effectively-with/0131177052/

 

Working Effectively with Legacy Code

Get more out of your legacy systems: more performance, functionality, reliability, and manageability Is your code easy to change? Can you get nearly instantaneous feedback when you do change it? … - Selection from Working Effectively with Legacy Code [Bo

www.oreilly.com

좋은 요약글: https://kok202.tistory.com/346

 

레거시 코드 활용 전략

http://www.yes24.com/Product/Goods/64586851 레거시 코드 활용 전략 - YES24 시스템 내에 오래된 코드를 다루는 방법을 배울 수 있다. 오래된 코드, 즉 레거시 코드는 그 코드에 익숙한 사람도 없고, 테스트 루

kok202.tistory.com