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

consider --timeout in CLI options for use with VSCode debugger #1771

Closed
4 tasks done
panick-carousel opened this issue Aug 2, 2022 · 4 comments · Fixed by #3019
Closed
4 tasks done

consider --timeout in CLI options for use with VSCode debugger #1771

panick-carousel opened this issue Aug 2, 2022 · 4 comments · Fixed by #3019
Labels
enhancement New feature or request

Comments

@panick-carousel
Copy link

Clear and concise description of the problem

When using the debugger in vscode, our tests keep timing out, but we don't want to have to set the timeout in the config file because this works great for our CI setup.

Suggested solution

Ideally at invocation time (ie: from the launcher) we could set a timeout so that when we hit a breakpoint, the delay will not cause the test to fail and therefore not proceed any further down the codepath we are trying to troubleshoot.

Alternative

No response

Additional context

No response

Validations

@sheremet-va
Copy link
Member

Sorry, I don't understand what you want. Do you need timeout after tests are run, or before Vitest runs tests?

@panick-carousel
Copy link
Author

I am requesting to be able to override the config file timeout setting by passing a cli option. Specifically this setting: https://vitest.dev/config/#testtimeout

This means vscode debugger becomes usable easily.

@sheremet-va sheremet-va added the enhancement New feature or request label Aug 2, 2022
@larswww
Copy link

larswww commented Nov 23, 2022

Having the same issue. I am debugging the code and due to time spent paused on a breakpoint, I hit the 5000ms default limit. I don't want to increase the timeout because when I run the tests without the debugger, then I want it to be limited.

Perhaps an interim solution could be to set timeout to infinite, based on process.env?

@mekapotulas
Copy link

+1 facing this issue as well

@github-actions github-actions bot locked and limited conversation to collaborators Jun 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants