Open in app
Home
Notifications
Lists
Stories

Write
Ben Gilroy
Ben Gilroy

Home

Published in Kin + Carta Created

·May 5, 2020

Improving your Unit Test Mocks with Arrays (iOS & Swift)

In this post, I’m going to show how you can leverage arrays in your mocks to write better quality and more readable unit tests that might help you catch bugs in your code that you didn’t even know existed. What are unit tests and mocks? Although I’m not going to cover in detail what mocks and…

Engineering

6 min read

Using Array to Improve your Mocks in Unit Tests (iOS & Swift)
Using Array to Improve your Mocks in Unit Tests (iOS & Swift)
Ben Gilroy

Ben Gilroy

Senior iOS Engineer at Kin + Carta Create EU

Following
  • Darius Foroux

    Darius Foroux

  • Code.org

    Code.org

  • Gabriel Massana

    Gabriel Massana

  • Muzli

    Muzli

  • Nir Eyal

    Nir Eyal

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Knowable