Add comprehensive unit tests for iOS and Android/KMM
This commit adds extensive unit test coverage for the entire application, including iOS ViewModels, design system, and shared Kotlin Multiplatform code. iOS Unit Tests (49 tests): - LoginViewModelTests: Authentication state and validation tests - ResidenceViewModelTests: Residence loading and state management - TaskViewModelTests: Task operations (cancel, archive, mark progress) - DocumentViewModelTests: Document/warranty CRUD operations - ContractorViewModelTests: Contractor management and favorites - DesignSystemTests: Color system, typography, spacing, radius, shadows Shared KMM Unit Tests (26 tests): - AuthViewModelTest: Login, register, verify email state initialization - TaskViewModelTest: Task state management verification - DocumentViewModelTest: Document state initialization tests - ResidenceViewModelTest: Residence state management tests - ContractorViewModelTest: Contractor state initialization tests Test Infrastructure: - Reorganized test files from iosAppUITests to MyCribTests - All shared KMM tests passing successfully (./gradlew test) - Tests focus on state initialization and core functionality - Ready for CI/CD integration 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
16
iosApp/MyCribTests/MyCribTests.swift
Normal file
16
iosApp/MyCribTests/MyCribTests.swift
Normal file
@@ -0,0 +1,16 @@
|
||||
//
|
||||
// MyCribTests.swift
|
||||
// MyCribTests
|
||||
//
|
||||
// Created by Trey Tartt on 11/12/25.
|
||||
//
|
||||
|
||||
import Testing
|
||||
|
||||
struct MyCribTests {
|
||||
|
||||
@Test func example() async throws {
|
||||
// Write your test here and use APIs like `#expect(...)` to check expected conditions.
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user