Make sure your CircleCI parallel test runners all finish at the same time
Testqueue is a utility to help split work amongst parallel test runners on CircleCI. It does this by creating a simple SQS queue which the test runners consume.
# npmnpm install --save-dev testqueue# yarnyarn add -D testqueue
Testqueue is simple to use. A couple quick things to note:
- Testqueue is made for use on CircleCI and relies on specific environment variables that CircleCI sets in order to coordinate between the parallel nodes.
- Testqueue will automatically delete your queue(s) when it finishes. There is also an exit hook to delete all queues should your process exit early for any reason.
- Write tests (I know, I know)