1 day ago · Tech · hide

Last week I wrote about automatic RSpec sharding on GitHub Actions with parallel_tests-ci, a Ruby project. Claude ported this approach to JavaScript and we called it testlanes. It splits Vitest, Jest, and node:test suites into shards balanced by how long each test file took in earlier runs, on Linux, macOS, and Windows. Real Project Benchmarks The tests of npm-package-release took more than three minutes on Windows and almost as long on macOS. Each bar shows the slowest worker’s test step in one of the five Test environments, excluding setup. The unsharded run took 199 seconds on Windows and 170 seconds on macOS. I then ran the same pull request four times with four shards per environment, balanced by timings recorded before the split. The slowest worker took 27 to 48 seconds on Ubuntu, 57 to 58 seconds on macOS, and 74 to 110 seconds on Windows, whose runners vary the most from run to run. How to Use It With Node.js 22.12 or newer, add testlanes as a development dependency: npm…

Commenting on Bubbles has been removed. Why? If you want to talk about this post, write to the author, use the comments on their blog if it has them, or reply with a "RE:" post on your own blog. Suggestions? feedback@bubbles.town