TestScript

TestScript

Test script class

Constructor

new TestScript(URI, sourcePath, testPath)

Source:
Parameters:
Name Type Description
URI string

Path of a Source module

sourcePath string

Path of the Source directory

testPath string

Path of the Test directory

Extends

Methods

addUnit(Doclet)

Source:
Since:
  • 0.2.0
Author:
  • TechQuery

Add Test unit

Parameters:
Name Type Description
Doclet object
Throws:

While the title, script or expected of an Example is missing

Type
SyntaxError

toString() → {string}

Source:
Since:
  • 0.2.0
Author:
Returns:

Source code of this Test script

Type
string

Events

fileWrite

Source:

Before the Test script writed

headerWrite

Source:

Before the header of Test script writed

itemWrite

Source:

Before Test item writed