In my company, we tend to use modular architecture. We separate features in separate projects and have them all open in one workspace. This brings some joys, but on the other hand, it also brings some problems. For instance with adding tests.

As I haven’t found any complex answer for that, I wrote down an easy step-by-step tutorial, which some of you may find useful.

OUR PROJECT STRUCTURE

Since it’s always easier to imagine on direct example, imagine a scenario described in Img. 1. We have one workspace which contains three projects. One for Pods, one for the main app called MyProject with…

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store