Skip to content

Add support for running doctest#39

Open
narqo wants to merge 1 commit into
zed-extensions:mainfrom
narqo:vrnkn/push-zlyzxtymspxx
Open

Add support for running doctest#39
narqo wants to merge 1 commit into
zed-extensions:mainfrom
narqo:vrnkn/push-zlyzxtymspxx

Conversation

@narqo
Copy link
Copy Markdown

@narqo narqo commented May 9, 2026

Zig's doctest are

Test declarations named using an identifier (ref spec)

This PR adds support for running doctest tests.

Screenshot 2026-05-09 at 10 55 56

The PR also updates the extension's task to be more specific in which test it runs. Unfortunately, Zig doesn't let you specify the exact test name to run (ie. the ^name$ exact). The test-filter flag only check the passed string against test's FQN, defined as <namespace>.test.<name> and <namespace>.decltest.<name>. Here I'm using the .test. and .decltest. substring as a semaphore.

@cla-bot cla-bot Bot added the cla-signed label May 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant