vitest-dev / vitest-dev/vitest

Custom Environment signal to terminate entire test run

Open
#8,395 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

p2-nice-to-have
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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.