Skip to content

khng/swift-earlgrey-bootcamp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

swift-earlgrey-bootcamp

Hello Reader(s). This bootcamp is intended to give you a starting point into the Earlgrey framework and other testing tools for iOS... but truly, it was more of a learning experience for us to create this!

Here is an alterntive bootcamp if you find our intentions to be vile: Original Earlgrey Bootcamp

What you will need to get started

  • Xcode (Update to the latest version of Xcode)
  • Access to an internet connection

Getting started

Step 0: Setup

Resources:

Objective:

  • Set up EarlGrey framework on the sample app
  • Add a test that launches the app and asserts all elements are displayed on the view

Step 1: Actions and cocktail of Elements

Resources:

Objective:

  • Add a test to select 'Step 1' and assert all elements are displayed on the view

Step 2: Let the good times Scroll

Resources:

Objective:

  • Add a test to select 'Step 2' and assert '100' is displayed in the scrollable list

Step 3: OHHTTPStubs you glad I didn't say banana?

Resources:

Objective:

  • Add OHHTTPStubs as a testing dependency
  • Add a test to select 'Step 3' and stub the network call returning weather data to display custom data
  • Assert that the page displays the updated values

Step 4: Date you glad I didn't say Condition?

Resources

Objective

  • Add a test to select 'Step 4' and tap the button displayed until the current date and time is displayed (assert this too)

Step 5: More Actions and cocktail of Elements

Resources:

Objective:

  • Add a test to select 'Step 5' and assert all elements are displayed on the view

Step 6: Refactor and go home

Resources

Objective

  • Use setup() and tearDown() to remove any unnecessary dependencies in tests
  • Call it a day

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages