Skip to content

serkannkara/UnitTest-MVVM-C-Example

Repository files navigation

MVVM-C Unit Test Example

This repository contains an iOS application developed using the MVVM-C (Model-View-ViewModel-Coordinator) architecture. Additionally, it includes unit tests for the application.

Project Structure

The project is organized as follows:

  • UnitTest-MVVM-C-Example: Main project folder
    • UnitTest-MVVM-C-Example: Main application source code
    • UnitTest_MVVM_C_ExampleTests: Folder containing unit tests
    • ...

How to Run

  1. Clone this repository to your local machine.
  2. Open the UnitTest-MVVM-C-Example.xcodeproj file inside the main project folder using Xcode.
  3. Build the project and run the application.

Running Unit Tests

  1. Open a terminal and navigate to the project folder.
  2. Navigate to the UnitTest_MVVM_C_ExampleTests folder.
  3. Run the command xcodebuild test -scheme UnitTest_MVVM_C_ExampleTests -destination 'platform=iOS Simulator,name=iPhone 13' to start the unit tests.

Update Versions

  1. Xcode Version 14.3
  2. iOS Version 15.0+
  3. Swift Version 4.0+