Skip to content

languages: Fix Debug Test for Go subtests#53680

Open
yeskunall wants to merge 1 commit intomainfrom
fix-issue-53230-a798a6abc50b3a6e
Open

languages: Fix Debug Test for Go subtests#53680
yeskunall wants to merge 1 commit intomainfrom
fix-issue-53230-a798a6abc50b3a6e

Conversation

@yeskunall
Copy link
Copy Markdown
Member

The go-subtest task template wrapped the -run arg in single quotes for shell safety. This works for Run Test (terminal strips quotes), but Debug Test sends the arg through Delve’s DAP protocol with no shell involved, so the literal quote characters ended up in the regex and prevented any match.

All other Go task templates (go-test, go-testify-suite, go-table-test-case) use the backslash-escaped format which GoLocator already knows how to handle. Align the go-subtest template to the same format.

Self-Review Checklist:

  • I've reviewed my own diff for quality, security, and reliability
  • Unsafe blocks (if any) have justifying comments
  • The content is consistent with the UI/UX checklist
  • Tests cover the new/changed behavior
  • Performance impact has been considered and is acceptable

Closes #53230.

Release Notes:

  • Fixed Debug Test for Go subtests

The go-subtest task template wrapped the -run arg in single quotes
for shell safety. This works for Run Test (terminal strips quotes),
but Debug Test sends the arg through Delve's DAP protocol with no
shell involved, so the literal quote characters ended up in the
regex and prevented any match.

All other Go task templates (go-test, go-testify-suite,
go-table-test-case) use the backslash-escaped format which the
GoLocator already knows how to handle. Align the go-subtest
template to the same format.
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Apr 11, 2026
@zed-community-bot zed-community-bot bot added the staff Pull requests authored by a current member of Zed staff label Apr 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement staff Pull requests authored by a current member of Zed staff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"no tests to run" when debugging Go subtests

1 participant