Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@knapsack-pro/vitest
Advanced tools
Knapsack Pro Vitest splits Vitest tests across CI nodes and makes sure that tests will run in optimal time on each CI node.
Run your 1-hour test suite in 2 minutes with optimal parallelisation on your existing CI infrastructure
Knapsack Pro wraps Vitest and works with your existing CI infrastructure to parallelize tests optimally:
npm install @knapsack-pro/vitest
vitest
with @knapsack-pro/vitest
in your CI configKNAPSACK_PRO_TEST_SUITE_TOKEN_VITEST
environment variable to your Knapsack Pro test suite token, and optionally set other environemnt variables as needed.Below are the primary environment variables you may need to set to use Knapsack Pro with Vitest. For a full list of environment variables, see Knapsack Pro Jest.
KNAPSACK_PRO_TEST_SUITE_TOKEN_VITEST
(Required)The API token you receive when creating a new Test Suite in Knapsack Pro. This authenticates your test suite with our API.
KNAPSACK_PRO_TEST_FILE_PATTERN
(Optional)A glob pattern to specify which test files to run. If not provided, uses the vitest
configuration file
KNAPSACK_PRO_TEST_FILE_EXCLUDE_PATTERN
(Optional)A glob pattern to specify which test files to exclude. If not provided, uses the vitest
configuration file.
KNAPSACK_PRO_COVERAGE_DIRECTORY
(Optional)The directory where coverage reports will be saved. If not provided, uses the vitest
configuration file.
KNAPSACK_PRO_CI_NODE_TOTAL
(Required)The total number of parallel CI nodes you're running. For example, if you're running tests across 4 machines, this should be set to 4
.
KNAPSACK_PRO_CI_NODE_INDEX
(Required)The index of the current CI node (0-based). For example, if you're running on 4 machines, each machine should have a unique index from 0
to 3
.
KNAPSACK_PRO_LOG_LEVEL
(Optional)Controls the verbosity of logs
Follow the steps in the root README.md to set up the project.
You can compile TypeScript in watch mode from the root folder with:
npm start -w packages/vitest
To test @knapsack-pro/vitest
against a real test suite we use:
See Publishing in the root README.md.
FAQs
Knapsack Pro Vitest splits Vitest tests across CI nodes and makes sure that tests will run in optimal time on each CI node.
The npm package @knapsack-pro/vitest receives a total of 3 weekly downloads. As such, @knapsack-pro/vitest popularity was classified as not popular.
We found that @knapsack-pro/vitest demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.