🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

testqueue

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

testqueue

Make sure your CircleCI parallel test runners all finish at the same time

latest
Source
npmnpm
Version
0.0.28
Version published
Maintainers
1
Created
Source

testqueue

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.

Install

# npm
npm install --save-dev testqueue

# yarn
yarn add -D testqueue

Use

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.
import TestQueue from 'testqueue';

const queue = new TestQueue({
  testDir: 'test',
  async testRunner(file) {/* run the test file */},
  onFinish() {/* Clean up or something */},
});

queue
  .start()
  .then(() => console.log('Yay!'));

TODO

  • Write tests (I know, I know)

Keywords

circleci

FAQs

Package last updated on 28 Aug 2017

Did you know?

Socket

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.

Install

Related posts