test(opencode): separate plugin test suite #253

Merged
jwilger merged 1 commit from issue-248-opencode-plugin-tests into main 2026-05-18 11:55:21 -07:00
Owner

Why this change

Issue #248 asks for opencode plugin/harness tests to be kept visible without mixing them into the Rust application test layout.

What changed

  • Moved the remaining opencode RGR task-gate test from tests/ to .opencode/plugins/.
  • Added just opencode-test as the explicit plugin test runner, backed by tracked .opencode/package*.json metadata.
  • Added Node to the Nix dev shell for the plugin harness.
  • Added a separate Forgejo CI job for just opencode-test and made semantic review/artifact jobs depend on it.
  • Updated contributor, agent, command, and PR-template guidance to distinguish just test from just opencode-test.

Scope of this PR

  • Test layout and developer tooling only.
  • CI workflow wiring for the new opencode plugin test suite.
  • Documentation/guidance for contributors and agents.

Consequences

  • just test remains the Rust application suite.
  • just opencode-test runs the .opencode/plugins/*.test.ts harness suite and installs its npm dependency with npm ci.

Verification

  • just opencode-test
  • just fmt
  • just test
  • just clippy
  • just ci

Closes #248

## Why this change Issue #248 asks for opencode plugin/harness tests to be kept visible without mixing them into the Rust application test layout. ## What changed - Moved the remaining opencode RGR task-gate test from `tests/` to `.opencode/plugins/`. - Added `just opencode-test` as the explicit plugin test runner, backed by tracked `.opencode/package*.json` metadata. - Added Node to the Nix dev shell for the plugin harness. - Added a separate Forgejo CI job for `just opencode-test` and made semantic review/artifact jobs depend on it. - Updated contributor, agent, command, and PR-template guidance to distinguish `just test` from `just opencode-test`. ## Scope of this PR - Test layout and developer tooling only. - CI workflow wiring for the new opencode plugin test suite. - Documentation/guidance for contributors and agents. ## Consequences - `just test` remains the Rust application suite. - `just opencode-test` runs the `.opencode/plugins/*.test.ts` harness suite and installs its npm dependency with `npm ci`. ## Verification - [x] `just opencode-test` - [x] `just fmt` - [x] `just test` - [x] `just clippy` - [x] `just ci` Closes #248
test(opencode): separate plugin test suite
All checks were successful
CI / Format check (pull_request) Successful in 12s
CI / Clippy (pull_request) Successful in 40s
CI / opencode plugin tests (pull_request) Successful in 9s
CI / Dependency policy (pull_request) Successful in 10s
CI / Test (pull_request) Successful in 49s
CI / Build (pull_request) Successful in 32s
CI / Request auto_review semantic review (pull_request) Successful in 1s
CI / Build PR artifacts (no token) (pull_request) Successful in 2s
auto_review auto_review: no findings
bd81bc1a78
Why:
- Issue #248 asks for opencode harness/plugin tests to be visible without being mixed into the Rust application test tree.
- A dedicated test recipe and CI job make the boundary explicit for contributors and reviewers.

What:
- Move the remaining opencode RGR plugin test beside the project plugins.
- Add just opencode-test with tracked npm metadata and Node in the Nix dev shell.
- Wire the opencode plugin test gate into CI and update developer guidance.

Validation:
- just opencode-test
- just fmt
- just test
- just clippy
- just ci
auto-review left a comment

This PR separates the opencode plugin test suite from the Rust application tests, introducing a new just opencode-test command and CI job. The changes appear well-integrated and maintain the project's testing standards.

Walkthrough

  • CI Workflow Changes:
    • Added a new opencode-test job to run plugin tests separately.
    • Updated dependencies for semantic-review and pr-artifact-build jobs to include opencode-test.
  • Justfile and Commands:
    • Introduced just opencode-test for running plugin tests.
    • Updated documentation to reflect the new command and its usage.
  • File Relocation:
    • Moved plugin tests to .opencode/plugins/ to keep them distinct from Rust tests.
This PR separates the opencode plugin test suite from the Rust application tests, introducing a new `just opencode-test` command and CI job. The changes appear well-integrated and maintain the project's testing standards. ## Walkthrough - **CI Workflow Changes**: - Added a new `opencode-test` job to run plugin tests separately. - Updated dependencies for `semantic-review` and `pr-artifact-build` jobs to include `opencode-test`. - **Justfile and Commands**: - Introduced `just opencode-test` for running plugin tests. - Updated documentation to reflect the new command and its usage. - **File Relocation**: - Moved plugin tests to `.opencode/plugins/` to keep them distinct from Rust tests.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Slipstream/auto_review!253
No description provided.