Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Custom Launch Configurations #185

Closed
JustinGrote opened this issue Oct 14, 2023 · 1 comment · Fixed by #334
Closed

Support Custom Launch Configurations #185

JustinGrote opened this issue Oct 14, 2023 · 1 comment · Fixed by #334
Labels
p2-nice-to-have Not breaking anything but nice to have (priority)

Comments

@JustinGrote
Copy link

JustinGrote commented Oct 14, 2023

Is your feature request related to a problem? Please describe.
I am authoring a cloudflare worker with an end-to-end test that starts workerd on a custom inspect port. When clicking the "debug" button, vitest uses its own custom debug launch config and I have no way to set up to attach to the workerd instance in order to debug internals.

Describe the solution you'd like
Provide a configuration option to supply a custom debug launch config, similar to the Mocha Test Explorer. vitest would then append its -t, --api-port, and --api-host to the args of that launch config.

Alternatively, provide an additional attach port setting in the config that will launch a child attach debug config on the specified port.

I would be willing to attempt a PR if there is interest, I wrote my own Test Extension for PowerShell Pester and am familiar with the internals.

@JustinGrote JustinGrote added the p2-nice-to-have Not breaking anything but nice to have (priority) label Oct 14, 2023
@sheremet-va
Copy link
Member

sheremet-va commented Mar 15, 2024

In the new extension (pre-release 0.5.0+), we attach to the process that runs Vitest instead of starting a new process. Do you think your proposal could still work with that approach?

@github-actions github-actions bot locked and limited conversation to collaborators Apr 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
p2-nice-to-have Not breaking anything but nice to have (priority)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants