Global

Type Definitions

fileWrite(header)

Source:
Example
// TestHook.js

    exports.fileWrite = function (header) {

        header.source = 'custom test script';
    };
Parameters:
Name Type Description
header TestHeader

headerWrite(header)

Source:
Example
// TestHook.js

    exports.headerWrite = function (header) {

        header.source = 'custom test script';
    };
Parameters:
Name Type Description
header TestHeader

itemWrite(item)

Source:
Example
// TestHook.js

    exports.itemWrite = function (item) {

        item.source = 'custom test script';
    };
Parameters:
Name Type Description
item TestItem

TestHeader

Source:
Properties:
Name Type Attributes Default Description
URI string

Module URI relative to the Source directory

sourceURI string

Module URI relative to this Test scirpt

source string <optional>
''

The header's source code of this Test script

Test header object

Type:
  • object

TestItem

Source:
Properties:
Name Type Attributes Default Description
title string

Comment text in the same line of @example

script string

Source code to be tested

expected string

Expected result

source string <optional>
''

Full source code of this test

Test item object

Type:
  • object