Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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".

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.