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
- Xcode (Update to the latest version of Xcode)
- Access to an internet connection
- Set up EarlGrey framework on the sample app
- Add a test that launches the app and asserts all elements are displayed on the view
- Add a test to select 'Step 1' and assert all elements are displayed on the view
- Add a test to select 'Step 2' and assert '100' is displayed in the scrollable list
- 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
- Add a test to select 'Step 4' and tap the button displayed until the current date and time is displayed (assert this too)
- Add a test to select 'Step 5' and assert all elements are displayed on the view
- Use setup() and tearDown() to remove any unnecessary dependencies in tests
- Call it a day