This is an ad-hoc mock class for UI testing with Firebase and Swift for a small project I am working on..
- You need to add the Firebase framework to your project.
- Add the file
firebase.swift
to your project. Conveniently rename it toMockFirebase.swift
or something. - Substitute
Firebase
forMockFirebase
in your tests.
- Fork the repo
- Add the Firebase framework to the project
- Run
carthage bootstrap
to add testing frameworks Quick/Nimble - Add more mock firebase functions and write appropriate tests
- Create a pull request