Skip to content

feat: Run unit test commands without a shell - #50

Open
slavakurilyak wants to merge 2 commits into
plainlang:devfrom
slavakurilyak:feat/direct-unit-test-command
Open

slavakurilyak wants to merge 2 commits into
plainlang:devfrom
slavakurilyak:feat/direct-unit-test-command

Conversation

@slavakurilyak

@slavakurilyak slavakurilyak commented Nov 30, 2026 •

Copy link
Copy Markdown

A project that can run its tests with go test ./... currently needs a wrapper to satisfy Forge's runner convention. Pyro can run the command directly with this opt-in setting:

Before and after

Before:

unittests-script: test_scripts/run_unittests_go.sh

The script wrapper receives the generated build path and invokes Go.

After:

unittests-command: ["go", "test", "./..."]

The new helper executes the argument array directly without a shell in a temporary copy of the generated code and propagates the command's exit status. Go caches live in the temporary directory. The existing script workflow remains available.

This is the renderer part of the change. Forge's config and health-check guidance can adopt the setting when Forge bundles a Pyro version with this support.

Verified with python3 tests/run_tests.py and a real go test ./... run through the helper.

@coderabbitai

coderabbitai Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 21adf868-7d01-4af1-8884-6e6da0ef30fb

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

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