Skip to content

test(store-redis): improve coverage from 77% to 84% and raise thresho…#96

Open
mattnichols wants to merge 1 commit into
masterfrom
feature/store-redis-coverage
Open

test(store-redis): improve coverage from 77% to 84% and raise thresho…#96
mattnichols wants to merge 1 commit into
masterfrom
feature/store-redis-coverage

Conversation

@mattnichols

@mattnichols mattnichols commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Adds a test covering the buildConnection() exception path in RedisStore, exercising the try/catch block that wraps Lettuce's RedisException as a RedisStoreConnectionException
  • Raises store-redis minimum coverage threshold from 0.77 → 0.80 in build.gradle (actual coverage is now 84%)
  • Refreshes all gradle.lockfiles to resolve a Java 17/21 version conflict with the spotbugs-annotations transitive dependency
  • Adds CLAUDE.md with codebase guidance for Claude Code

Context

store-redis was the only module below the 80% coverage target. The gap was entirely in buildConnection() and buildClusterConnection() — the existing tests mock those methods via Mockito spy, so their
bodies were never instrumented. The new test calls buildConnection() directly on a non-spy instance with an unreachable port (port 1), causing Lettuce to fail synchronously with a
RedisConnectionException, which exercises the full try block and the catch (RedisException) branch.

All other modules already exceeded 80% (range: 85%–100%).

…ld to 80%

- Add test exercising buildConnection() exception path directly
- Raise minimumCoverage from 0.77 to 0.80 in store-redis/build.gradle
- Refresh all gradle.lockfiles for Java 21 compatibility
- Add CLAUDE.md with codebase guidance for Claude Code
@mattnichols mattnichols force-pushed the feature/store-redis-coverage branch from 618cd2a to 9dc5442 Compare June 17, 2026 23:22
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.

1 participant