Skip to content

Conversation

luehmann
Copy link
Contributor

This adds the debugTestArgs option, which allows users to override the arguments used to build a test binary, similar to testArgs. It also changes the working directory to the workspace folder to allow running zig build.

Note that using the absolute binaryPath variable from build.zig is currently cumbersome, as it doesn’t integrate well with the way install paths are just relative directories within the install directory.

Supersedes #445
Closes #443

This adds the `debugTestArgs` option, which allows users to override the
arguments used to build a test binary, similar to `testArgs`. It also
changes the working directory to the workspace folder to allow running
`zig build`.
Copy link
Member

@Vexu Vexu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Debugging tests should probably also have import error detection like when running tests but that can be a future improvement.

@Vexu Vexu merged commit db14a21 into ziglang:master Sep 17, 2025
1 check passed
@luehmann luehmann deleted the debug_test_args branch September 17, 2025 14:16
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.

Debugging tests ignores testArgs

2 participants