Skip to content

Test Fixtures

Ali Sadeghi edited this page Jan 6, 2026 · 7 revisions

Test Fixtures Agent

Generates test fixtures for domain models.

Example Output

// feature/login/src/commonTest/kotlin/fixtures/LoginFixtures.kt
object LoginFixtures {
    fun loginRequest(
        email: String = "test@example.com",
        password: String = "password123"
    ) = LoginRequest(email, password)

    fun loginResponse(
        token: String = "sample-token-123",
        user: User = UserFixtures.user()
    ) = LoginResponse(token, user)

    fun user(
        id: String = "user-123",
        name: String = "Test User",
        email: String = "test@example.com"
    ) = User(id, name, email)
}

Back to Agents

Clone this wiki locally