Module: node-tee-test

Testing module for 'node-tee' core utility.
Version:
  • 1.0.1
Author:
  • Essam A. El-Sherif
Source:

Members

(inner, constant) CMD_NODE :string

The coreutils node command.
Type:
  • string
Source:

(inner, constant) CMD_NODE_TEST :string

The coreutils node testing command.
Type:
  • string
Source:

(inner, constant) CMD_SHELL :string

The coreutils shell command.
Type:
  • string
Source:

(inner, constant) cmdOptions :object

Command line arguments.
Type:
  • object
Source:

Methods

(inner) Main()

The application entry point function.
Source:

(inner) defRunner()

Carry out the loaded tests using this developed test runner.
Source:

(inner) getCmdOutput(cmdObj)

Carry out a single test.
Parameters:
Name Type Description
cmdObj object The test data object.
Source:

(inner) getError(Error) → {string}

Function to return error message.
Parameters:
Name Type Description
Error number number.
Source:
Returns:
Error message.
Type
string

(inner) getHelp() → {string}

Function to return help info.
Source:
Returns:
The help string.
Type
string

(inner) loadTestData()

Load test data.
Source:

(async, inner) makeTest(obj)

Carry out a single test.
Parameters:
Name Type Description
obj object The test data object.
Source:

(inner) nodeRunner(runner)

Carry out the loaded tests using node test runner.
Parameters:
Name Type Description
runner object The node core module 'node:test' object.
Source:

(inner) parseCmdLine()

Command line parser function.
Source:

(inner) verifyShellCmd()

Verify existance of the core utility command and test its version.
Source: