@tapjs/core
pluggable core of node-tap
Last updated 6 months ago by isaacs .
BlueOak-1.0.0 · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @tapjs/core 
SYNC missed versions from official npm registry.

@tapjs/core

This is the pluggable core of node-tap.

The TestBase class has the basic flow-control aspects of a tap Test object, but only the t.pass() and t.fail() assertions.

All other assertions and features are added via plugins.

Full documentation available in the typedocs.

Class Base

This is the base class of all sorts of test objects. It inherits from minipass.

Class TestBase

This provides the core flow control and TAP generation facilities. The Test class inherits from this.

Class Spawn

A child test class representing a child process that emits TAP on its standard output.

Class Worker

A child test class representing a worker thread that emits TAP on its standard output.

Class Stdin

A child test class representing TAP parsed from standard input.

Class TapFile

A child test class representing a file containing TAP data.

Class Counts

An object used to count pass, fail, todo, skip, total, and completed tests.

Class Lists

An object containing lists of test results.

Class TestPoint

An object representing a single ok/not ok test point.

Class Minimal

A very minimal Test class with no plugins, which can be used in tap internal tests.

It is essentially just the TestBase class, but automatically starting in the constructor, and with a .test() method so that it can be used somewhat like a "normal" Test instance.

The reason that this method does not live on TestBase itself is that it would make it more awkward to define on the Test class, with all its plugins and extensions.

Only useful if you want a Test without any plugins, for some reason.

proc, argv, cwd, env

Captured values of process, process.argv, process.cwd(), and process.env at the start of the process, in case they change later on or are not available for some other reason.

tapDir

The string path to the location of @tapjs/core.

mainScript(defaultName = 'TAP'): string

The path to the main module that node ran.

TapPlugin<PluginValue, OptionsValue>

The type of a plugin function which returns PluginValue and optionally which takes OptionsValue as options.

Extra

The extra info passed to assertions.

Extended by BaseOpts, TestBaseOpts, and ultimately TestOpts, since any subtest is also an assertion, and can take all the same assertion options.

Current Tags

  • 4.0.0                                ...           latest (6 months ago)
  • 1.0.0                                ...           pre (a year ago)

68 Versions

  • 4.0.0                                ...           6 months ago
  • 3.0.3                                ...           6 months ago
  • 3.0.2                                ...           6 months ago
  • 3.0.1                                ...           6 months ago
  • 3.0.0                                ...           6 months ago
  • 2.1.6                                ...           6 months ago
  • 2.1.5                                ...           6 months ago
  • 2.1.4                                ...           7 months ago
  • 2.1.3                                ...           7 months ago
  • 2.1.2                                ...           7 months ago
  • 2.1.1                                ...           7 months ago
  • 2.1.0                                ...           7 months ago
  • 2.0.1                                ...           7 months ago
  • 2.0.0                                ...           7 months ago
  • 1.5.4                                ...           7 months ago
  • 1.5.3                                ...           8 months ago
  • 1.5.2                                ...           9 months ago
  • 1.5.1                                ...           10 months ago
  • 1.5.0                                ...           a year ago
  • 1.4.6                                ...           a year ago
  • 1.4.5                                ...           a year ago
  • 1.4.4                                ...           a year ago
  • 1.4.3                                ...           a year ago
  • 1.4.2                                ...           a year ago
  • 1.4.1                                ...           a year ago
  • 1.4.0                                ...           a year ago
  • 1.3.10                                ...           a year ago
  • 1.3.9                                ...           a year ago
  • 1.3.8                                ...           a year ago
  • 1.3.7                                ...           a year ago
  • 1.3.6                                ...           a year ago
  • 1.3.5                                ...           a year ago
  • 1.3.4                                ...           a year ago
  • 1.3.3                                ...           a year ago
  • 1.3.2                                ...           a year ago
  • 1.3.1                                ...           a year ago
  • 1.3.0                                ...           a year ago
  • 1.2.0                                ...           a year ago
  • 1.1.2                                ...           a year ago
  • 1.1.1                                ...           a year ago
  • 1.1.0                                ...           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
  • 0.0.0-0                                ...           a year ago
Maintainers (2)
Downloads
Total 2
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (12)
Dev Dependencies (0)
None
Dependents (2)

© 2010 - cnpmjs.org x YWFE | Home | YWFE