microsoft / microsoft/vscode-test-web

Pass the environment variables to the test env, for example `CI`

Open
#94 3 comments 0 reactions 1 assignee View on GitHub

@aeschli is already working on this.

Since Oct 22, 2024.

feature-request
Dominant language
HTML
Stars
87
Forks
31
Avg merge
23h 49m
Merged PRs (30d)
5

Description

When tests are run by vscode-test-web, process.env is empty.
This is inconvenient, for example, when the CI envvar is checked in the test files to detect the GitHub Actions environment.

It would be nice if there is an option to pass all or some of the environment variables from the parent env to the browser env launched by this library, or an option to set arbitrary envvars in the test env.

Contributor guide

No contributing guide indexed for this repository

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.