stale-psychiatrist-58431
07/21/2025, 11:31 AMtall-airline-16756
07/21/2025, 11:31 AMtall-airline-16756
07/21/2025, 11:32 AMsetupSingleNodeTest or Swift’s withRooms) to automate room creation, participant management, and feature testing within one pod.
• Token-Based Authentication: Generate tokens with specific permissions for each test participant and room, enabling you to test different roles and access levels.
• Room Service API Testing: Use the Room Service API to create, list, update, and manage rooms and participants programmatically for integration and functional tests.
• Mock-Based Unit Testing: For SDK-level tests, use mock objects to isolate and test room logic without requiring a live server.
• End-to-End Integration Testing: Simulate real-world scenarios by connecting multiple clients, verifying connection states, participant events, and room properties.
These methods allow you to thoroughly test room creation, participant interactions, and LiveKit features within a single pod before scaling to multi-node environments.
Sources: Tests/LiveKitTests/Room/RoomTests.swift | test/agent_test.go | src/main/kotlin/io/livekit/server/RoomServiceClient.kt | livekit-android-test/src/test/java/io/livekit/android/room/RoomTest.kt | Tests/PlayMode/RoomTests.csstale-psychiatrist-58431
07/21/2025, 11:32 AMtall-airline-16756
07/21/2025, 11:33 AM