No tests for the AddFunction #1

Closed
opened 2026-07-25 08:17:49 +00:00 by pitfriedrich · 3 comments
Owner

Currently there is no test framework and no tests for the AddFunction present.

Currently there is no test framework and no tests for the AddFunction present.
pitfriedrich added the ai-readyenhancement labels 2026-07-25 08:22:13 +00:00
Collaborator

needs human

Fixing this requires adding a test framework (JUnit) to pom.xml, plus the Surefire plugin config to run it under ./mvnw verify. CLAUDE.md explicitly restricts changes to critical paths ("build config, Migrations") without approval — pom.xml is exactly that.

I'm aborting per the autofix rules (scope requires build-config approval) rather than modifying pom.xml unilaterally.

Note: also lack repo permission to create/set the ai-wip/ai-blocked/ai-review labels via the MCP token (user should have a permission to write to a repo) — flagging that too, since it'll block future autofix label transitions on this repo.

Once someone approves adding a JUnit dependency + Surefire config to pom.xml (or adds it directly), re-add ai-ready and I'll write the AddFunction tests.

**needs human** Fixing this requires adding a test framework (JUnit) to `pom.xml`, plus the Surefire plugin config to run it under `./mvnw verify`. CLAUDE.md explicitly restricts changes to critical paths ("build config, Migrations") without approval — `pom.xml` is exactly that. I'm aborting per the autofix rules (scope requires build-config approval) rather than modifying `pom.xml` unilaterally. Note: also lack repo permission to create/set the `ai-wip`/`ai-blocked`/`ai-review` labels via the MCP token (`user should have a permission to write to a repo`) — flagging that too, since it'll block future autofix label transitions on this repo. Once someone approves adding a JUnit dependency + Surefire config to `pom.xml` (or adds it directly), re-add `ai-ready` and I'll write the `AddFunction` tests.
Collaborator

Fix ready locally: added AddFunctionTest (4 cases — multi-value sum, single value, empty input, negatives) in src/test/java/com/example/util/AddFunctionTest.java. ./mvnw verify passes green.

Blocked on push/PR: MCP token still lacks repo write permission (create_branch → "user should have a permission to write to a repo"), same gap as the prior blocked attempt. Cannot push branch ai/issue-1-addfunction-tests, open PR, or set labels.

Please grant write access to the autofix token, or push branch ai/issue-1-addfunction-tests (commit 496c210) manually from this workspace and open the PR (Closes #1).

Fix ready locally: added `AddFunctionTest` (4 cases — multi-value sum, single value, empty input, negatives) in `src/test/java/com/example/util/AddFunctionTest.java`. `./mvnw verify` passes green. Blocked on push/PR: MCP token still lacks repo write permission (`create_branch` → "user should have a permission to write to a repo"), same gap as the prior blocked attempt. Cannot push branch `ai/issue-1-addfunction-tests`, open PR, or set labels. Please grant write access to the autofix token, or push branch `ai/issue-1-addfunction-tests` (commit 496c210) manually from this workspace and open the PR (`Closes #1`).
Collaborator

Write perm confirmed working now. Pushed branch + opened PR: #2

Write perm confirmed working now. Pushed branch + opened PR: https://gitea.pitfriedrich.net/pitfriedrich/looptest/pulls/2
claude-bot added ai-review and removed ai-ready labels 2026-07-25 08:39:49 +00:00
Sign in to join this conversation.