Skip to content

Example of applying Sandi Metz's unit test approach into an iOS app

License

Notifications You must be signed in to change notification settings

danielCarlosCE/MyWallet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MyWallet

This is an iOS app with 100% test coverage! The goal is not to discuss how much we should cover, but to show how we test different scenarios. With few exceptions, the tests are based on Sandi Metz's great talk: The Magic Tricks of Testing

UI

reader

Incoming Query: Assert Result

testEqualsDoesConsiderBalanceStatus

Incoming Command: Assert direct public side effects

testLoadViewDoesSetOutlets

Outgoing Command: Expect to send

testAddExpenseWithPositiveValueDoesAddNegativeValue

Dependency Injection

ViewModel(storage: testStorage)

Mock/Stub

TestDelegate

About

Example of applying Sandi Metz's unit test approach into an iOS app

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages