Skip to content

Conversation

@c5inco
Copy link
Owner

@c5inco c5inco commented Dec 21, 2025

Adds comprehensive unit tests and test infrastructure for the Mesh project to improve code quality and enable CI.

This PR introduces 80 new unit tests covering MeshPoint, SavedColor, MeshState, Utils, and MeshStateManager. It also sets up the test infrastructure in build.gradle.kts for Kotlin Multiplatform, configures the JVM toolchain to Java 21, and includes a TESTS.md documentation file. Key challenges addressed include floating-point precision handling in Compose Color conversions and ensuring proper test isolation for state management. Compose UI tests were excluded due to headless environment limitations.


Linear Issue: C5-50

Open in Cursor Open in Web

This commit introduces a suite of unit tests for data models and utilities, along with integration tests for state management. It also updates the Gradle configuration to include necessary testing dependencies and Java 21. A new TESTS.md file documents the test structure and execution.

Co-authored-by: chris.i.sinco <chris.i.sinco@gmail.com>
@cursor
Copy link

cursor bot commented Dec 21, 2025

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

cursoragent and others added 3 commits December 21, 2025 21:39
The strict JetBrains vendor requirement prevents tests from running in
environments without JetBrains JDK. Using jvmToolchain(21) allows any
Java 21 implementation while maintaining compatibility.
Co-authored-by: chris.i.sinco <chris.i.sinco@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants