Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 28 days 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 (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-12-28T08:43:36.000Z (about 3 years ago)
- Last Synced: 2024-11-17T03:29:40.160Z (3 months 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
[![Build Status](https://travis-ci.org/chicio/Asynchronous-Testing-Closure-Dependency.svg?branch=master)](https://travis-ci.org/chicio/Asynchronous-Testing-Closure-Dependency)
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](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.