Skip to content

Say that GradleProject defaults to the shared TestKit directory - #835

Merged
alexander-yevsyukov merged 1 commit into
masterfrom
claude/gradle-project-testkit-dir
Nov 3, 2026
Merged

alexander-yevsyukov merged 1 commit into
masterfrom
claude/gradle-project-testkit-dir

Conversation

@alexander-yevsyukov

Copy link
Copy Markdown
Contributor

Summary

Adds a note to the KDoc of useSharedTestKitDir(). Starting from ToolBase 2.0.0-SNAPSHOT.460 (SpineEventEngine/tool-base#207), the GradleProject API of plugin-testlib uses caches/spine-testkit under the Gradle user home as the default for a project set up with withSharedTestKitDirectory(). Earlier versions put that directory under the repository root, in .gradle-test-kit.

GradleProject computes the path itself, from the Gradle user home that the test JVM sees, so the note asks to keep SHARED_TESTKIT_DIR in sync with it.

KDoc only; no behaviour changes. If tool-base#207 merges at a version other than .460, the version in the note should follow it.

Test plan

  • ./gradlew :buildSrc:build detekt

🤖 Generated with Claude Code

From ToolBase `2.0.0-SNAPSHOT.460`, `withSharedTestKitDirectory()` uses
`caches/spine-testkit` under the Gradle user home when given no directory.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings November 3, 2026 22:07
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-03T22:09:45.448793Z f8c7a50 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approved

There are no active review issues for this documentation-only update to the shared TestKit directory convention.

No open issues 🎉

What changed in this PR

Updates the KDoc for useSharedTestKitDir() to document ToolBase’s shared TestKit directory convention. No runtime behavior changes.

Changes:

  • Documents the directory change from .gradle-test-kit to caches/spine-testkit under Gradle user home, starting with ToolBase 2.0.0-SNAPSHOT.460.
  • Notes that SHARED_TESTKIT_DIR must stay aligned with the path computed by GradleProject.
File Description
buildSrc/​src/​main/​kotlin/​io/​spine/​gradle/​testing/​TestKitDir.kt Adds KDoc explaining the shared directory default and synchronization requirement.

Review effort: Balanced

@alexander-yevsyukov alexander-yevsyukov self-assigned this Nov 3, 2026
@alexander-yevsyukov alexander-yevsyukov moved this to In Review in v2.0 Nov 3, 2026
@alexander-yevsyukov
alexander-yevsyukov merged commit 1dbad1f into master Nov 3, 2026
3 checks passed
@alexander-yevsyukov
alexander-yevsyukov deleted the claude/gradle-project-testkit-dir branch November 3, 2026 22:12
@github-project-automation github-project-automation Bot moved this from In Review to ✅ Done in v2.0 Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

2 participants