@tapjs/worker
a built-in tap extension for t.worker()
Last updated a year ago by isaacs .
BlueOak-1.0.0 · Repository · Bugs · Original npm · Tarball · package.json
$ gnpm install @tapjs/worker 
SYNC missed versions from official npm registry.

@tapjs/worker

A default tap plugin providing t.worker().

USAGE

This plugin is installed with tap by default. If you had previously removed it, you can tap plugin add @tapjs/worker to bring it back.

Interface WorkerOpts

Options for t.worker()

All of the normal Base and Extra options are also allowed.

  • workerData - Any data passed to the Worker thread. Shows up in the worker thread as t.workerData on the root TAP test.
  • env - Environment variables provided to the worker thread
  • eval - if set to true, then the filename will be treated as inline JavaScript code rather than a filename to run.

t.worker(filename, [options], [name]): PromiseWithWorker

Arguments:

  • filename string - The file to execute in the thread, or if { eval: true } is in the options, a string of JavaScript code to run.
  • options (optional) WorkerOpts object
  • name (optional) string - name of the subtest

Starts a Node.js Worker thread when the test starts, parsing its standard output as a TAP stream.

Returns a Promise that resolves when the test is complete. The subtest member on the Promise is a Worker instance.

Current Tags

  • 1.1.7                                ...           latest (a year ago)
  • 1.0.0                                ...           pre (a year ago)

38 Versions

  • 1.1.7                                ...           a year ago
  • 1.1.6                                ...           a year ago
  • 1.1.5                                ...           a year ago
  • 1.1.4                                ...           a year ago
  • 1.1.3                                ...           a year ago
  • 1.1.2                                ...           a year ago
  • 1.1.1                                ...           a year ago
  • 1.1.0                                ...           a year ago
  • 1.0.7                                ...           a year ago
  • 1.0.6                                ...           a year ago
  • 1.0.5                                ...           a year ago
  • 1.0.4                                ...           a year ago
  • 1.0.3                                ...           a year ago
  • 1.0.2                                ...           a year ago
  • 1.0.1                                ...           a year ago
  • 1.0.0                                ...           a year ago
  • 0.0.0-22                                ...           a year ago
  • 0.0.0-21                                ...           a year ago
  • 0.0.0-20                                ...           a year ago
  • 0.0.0-19                                ...           a year ago
  • 0.0.0-18                                ...           a year ago
  • 0.0.0-17                                ...           a year ago
  • 0.0.0-16                                ...           a year ago
  • 0.0.0-15                                ...           a year ago
  • 0.0.0-14                                ...           a year ago
  • 0.0.0-13                                ...           a year ago
  • 0.0.0-12                                ...           a year ago
  • 0.0.0-11                                ...           a year ago
  • 0.0.0-10                                ...           a year ago
  • 0.0.0-9                                ...           a year ago
  • 0.0.0-8                                ...           a year ago
  • 0.0.0-7                                ...           a year ago
  • 0.0.0-6                                ...           a year ago
  • 0.0.0-5                                ...           a year ago
  • 0.0.0-4                                ...           a year ago
  • 0.0.0-3                                ...           a year ago
  • 0.0.0-2                                ...           a year ago
  • 0.0.0-1                                ...           a year ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (2)

Copyright 2013 - present © cnpmjs.org | Home |