@revved/split-tests
v1.1.3
Published
Test splitting for Gitlab CI.
Downloads
2
Readme
split-tests
Command Line Args (all required)
split-tests [numberOfCiJobs] [jobIndexOffset] [folderToSearch]...
- numberOfCiJobs: How many parallel test jobs are being used.
- jobIndexOffset: Other non test parallel jobs can cause the job index to start higher than zero. Use this offset to account for that.
- folderToSearch: Pass one or more relative folder paths to search for test files in. Search is recursive, so only the top level folder(s) are needed.
Example
Example for running 1/6 of the tests at a time, offsetting to account for one other job, and searching through two folders:
split-tests 6 -1 unit-tests e2e-tests