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

@tapjs/spawn

A default tap plugin providing t.spawn().

USAGE

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

Interface SpawnOpts

Options for t.spawn()

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

  • cwd - string, the current working directory of the subprocess
  • env - Environment variables for the subprocess. Defaults to process.env
  • stdio - ChildProcess stdio option. Standard output is always set to 'pipe', because that's how it communicates test results, and file descriptor 3 is set to an IPC channel for sending timeout signals.
  • command (internal) - the command to run (set by first argument to t.spawn)
  • args (internal) - arguments to subprocess (set by second argument to t.spawn)
  • exitCode (internal) - Set on exit. The exit code of the process, or null if terminated with a signal.
  • signal (internal) - Set on exit. Terminating signal, or null of not terminated with a signal.

t.spawn(cmd, [args], [options], [name]): PromiseWithSpawn

Arguments:

  • cmd string - The command to run
  • args (optional) string | string[] - Arguments to pass to the command.
  • options (optional) SpawnOpts object

Spawns a process when the test starts, parsing its standard output as a TAP stream.

This is how the tap CLI runs test programs.

Returns a Promise that resolves when the test is complete. The subtest member on the Promise is a Spawn 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 (3)

Copyright 2013 - present © cnpmjs.org | Home |