https://github.com/chicio/asynchronous-testing-closure-dependency
This repository contains an example for my article "Asynchronous testing in Swift".
https://github.com/chicio/asynchronous-testing-closure-dependency
asynchronous-tests closure swift unit-testing xctest
Last synced: about 1 year ago
JSON representation
This repository contains an example for my article "Asynchronous testing in Swift".
- Host: GitHub
- URL: https://github.com/chicio/asynchronous-testing-closure-dependency
- Owner: chicio
- Created: 2018-06-01T16:19:39.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2021-12-28T08:43:36.000Z (over 4 years ago)
- Last Synced: 2025-01-17T22:43:46.046Z (over 1 year ago)
- Topics: asynchronous-tests, closure, swift, unit-testing, xctest
- Language: Swift
- Homepage: https://www.fabrizioduroni.it/blog/
- Size: 81.1 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Asynchronous Testing Closure Dependency
[](https://travis-ci.org/chicio/Asynchronous-Testing-Closure-Dependency)
[](https://raw.githubusercontent.com/chicio/Asynchronous-Testing-Closure-Dependency/master/LICENSE.md)
This repository contains an example for my article "Asynchronous testing in Swift".
### Description
> ...How do they work? To test that asynchronous operations (and closure) behave as expected, you create one or more
expectations within your test, and then fulfill those expectations when the asynchronous operation completes
successfully....
Click [here](https://www.fabrizioduroni.it/2018/06/01/async-closure-test-mock-expectation-fulfill/ "async closure test") to read the post.