Skip to content

chore(tools): Add backtrace parameter to cargo_test#426

Merged
JeanMertz merged 2 commits intomainfrom
prr3
Mar 10, 2026
Merged

chore(tools): Add backtrace parameter to cargo_test#426
JeanMertz merged 2 commits intomainfrom
prr3

Conversation

@JeanMertz
Copy link
Collaborator

The cargo_test tool now supports an optional backtrace parameter to control the RUST_BACKTRACE environment variable during test execution. Previously, backtraces were always enabled, which could lead to unnecessarily verbose output.

This update modifies the cargo_test implementation to default backtrace to false, only enabling it when explicitly requested. The tool definition in test.toml has been updated to include this new parameter, allowing assistants to toggle detailed error reporting as needed.

The `cargo_test` tool now supports an optional `backtrace` parameter to
control the `RUST_BACKTRACE` environment variable during test execution.
Previously, backtraces were always enabled, which could lead to
unnecessarily verbose output.

This update modifies the `cargo_test` implementation to default
`backtrace` to `false`, only enabling it when explicitly requested. The
tool definition in `test.toml` has been updated to include this new
parameter, allowing assistants to toggle detailed error reporting as
needed.

Signed-off-by: Jean Mertz <git@jeanmertz.com>
Signed-off-by: Jean Mertz <git@jeanmertz.com>
@JeanMertz JeanMertz merged commit cdda2c9 into main Mar 10, 2026
11 checks passed
@JeanMertz JeanMertz deleted the prr3 branch March 10, 2026 12:58
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