In terms of tests, we usually have files for unit test, UI test, integeration test and mock.
Out of sight, out of mind.
index.js index.test.js index.mock.js
LocationManager.kt LocationManager.mock.kt LocationManager.test.kt
BasketHandler.swift BasketHandler.mock.swift BasketHandler.test.swift
Integration tests check features or sub features, and may cover many source files, it’s better to place them in
- Features - Cart - Sources - Tests - Cart.test.swift - Validator.test.swift - Profile - Sources - Tests - Updater.test.swift - AvatarUploader.test.swift