vitest-dev / vitest-dev/vitest
Custom Environment signal to terminate entire test run
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 17.1k
- Forks
- 2k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 94
Description
Clear and concise description of the problem
I have a custom environment which creates/connects to an isolated database based on filename.
If one of these environments encounters a critical error (e.g. not able to connect to the template database to clone it) I want to completely terminate every further test case running in this environment (that is, every other worker).
Suggested solution
Special exit code/error thrown/SIGUSR sent?
Alternative
I haven't investigated the experimental VM mechanism yet.
Additional context
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the custom environment documentation linked in the issue, then investigate the experimental VM mechanism mentioned as an alternative. No repository file or test is named, so locate the environment and worker lifecycle entry points first. Done means a critical custom-environment error terminates the entire test run, including other workers.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- testing-qa
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100