Skip to content
Tadeas Kriz edited this page Jan 17, 2016 · 2 revisions

Mockery

Introduction

Mockery was created due to lack of a proper Swift mocking framework. We built the DSL very similar to Mockito, so anyone using it in Java/Android can immediately pick it up and use it.

How does it work

Mockery has two parts. One is the runtime and the other one is an OS X command-line tool simply called MockeryGenerator.

Unfortunately Swift does not have a proper reflection, so we use the generator to go through files you specify and generate supporting structs/classes that will be used by the runtime in your test target.

Clone this wiki locally