4.0.1 • Published 4 months ago

@tapjs/spawn v4.0.1

Weekly downloads
-
License
BlueOak-1.0.0
Repository
github
Last release
4 months ago

@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.

4.0.1

4 months ago

2.0.3

1 year ago

2.0.2

1 year ago

2.0.5

1 year ago

2.0.4

1 year ago

2.0.7

1 year ago

2.0.6

1 year ago

2.0.8

1 year ago

2.0.1

1 year ago

3.0.3

12 months ago

3.0.2

12 months ago

3.0.1

12 months ago

3.0.0

12 months ago

4.0.0

11 months ago

2.0.0

1 year ago

1.1.22

1 year ago

1.1.21

1 year ago

1.1.20

1 year ago

1.1.19

1 year ago

1.1.18

1 year ago

1.1.17

2 years ago

1.1.16

2 years ago

1.1.15

2 years ago

1.1.14

2 years ago

1.1.13

2 years ago

1.1.12

2 years ago

1.1.11

2 years ago

1.1.10

2 years ago

1.1.9

2 years ago

1.1.8

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.0.0-22

2 years ago

0.0.0-21

2 years ago

0.0.0-20

2 years ago

0.0.0-19

2 years ago

0.0.0-18

2 years ago

0.0.0-17

2 years ago

0.0.0-16

2 years ago

0.0.0-15

2 years ago

0.0.0-14

2 years ago

0.0.0-13

2 years ago

0.0.0-12

2 years ago

0.0.0-11

2 years ago

0.0.0-10

2 years ago

0.0.0-9

2 years ago

0.0.0-8

2 years ago

0.0.0-7

2 years ago

0.0.0-6

2 years ago

0.0.0-5

2 years ago

0.0.0-4

2 years ago

0.0.0-3

2 years ago

0.0.0-2

2 years ago

0.0.0-1

2 years ago