feat: add adt_rununit OpenCode tool for remote ABAP unit test execution#62
Merged
Conversation
…execution Adds a new OpenCode tool that triggers ABAP Unit tests on a remote SAP system via abap-adt-api. Follows the same core/wrapper split as adt_gitpull. - scripts/adt_rununit_core.ts: reusable core logic - .opencode/tools/adt_rununit.ts: OpenCode tool wrapper - Supports CLAS and DEVC object types - Defaults to SAP_ROOT_PACKAGE env var when no target specified - Returns formatted text summary with pass/fail counts and failure details
The @opencode-ai/plugin tool() function expects Zod schemas for args,
not plain {type, description, required} objects. This caused a
'Bad Request' error when OpenCode tried to load the tool.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a new OpenCode tool
adt_rununitthat triggers ABAP Unit tests on a remote SAP system via abap-adt-api.Design
scripts/adt_rununit_core.ts(reusable).opencode/tools/adt_rununit.ts(wrapper)objectType(CLAS/DEVC) +objectName. Defaults toSAP_ROOT_PACKAGEenv var.Configuration
Requires in
.env:SAP_ADT_URL,SAP_ADT_USER,SAP_ADT_PASSWORD(existing)SAP_ROOT_PACKAGE(new — default package for test runs)