This project uses comprehensive testing across all Kotlin Multiplatform targets.
# Run all tests (JVM + JS)
./gradlew allTests
# JVM tests only
./gradlew jvmTest
# JavaScript tests only
./gradlew jsTest- Uses SLF4J + Logback for real logging output verification
ListAppendercaptures actual log messages for assertions- Tests verify logging levels, message content, and exception handling
- Uses console monkey patching to capture browser/Node.js console output
- Temporarily replaces
console.log/info/warn/errorwith spy functions - Real console verification (not just "doesn't throw" stubs)
- Automatically restores original console methods after tests
- Common tests for cross-platform functionality
- Platform-specific tests for JVM and JS implementations
- All major logging scenarios covered
- Lazy evaluation testing
- Exception handling verification