Hemi JavaScript Framework

Hemi.app.module.test

Description

Test Modules are Modules decorated for unit testing. For example, the Application Component Tests includes several unit tests for vetting the Application Component class.

Class Index

static Hemi.app.module.test.service

version 3.1.9

Static implementation of the hemi.app.module.serviceImpl class.

Hemi.app.module.test.serviceImpl

version 3.1.9

The module service provides a convenience for modularizing and managing standard JavaScript as reusable components and tests.

Index

Object Index

Method Index

Objects

TestModule

A TestModule encapsulates the imported JavaScript and an API for operating within the framework, and includes a testing harness.

Properties

Methods

TestResult

A TestResult represents the collected and specified metrics of a specific test invocation.

Properties

Methods

NewTest

Creates a new TestModule object.

Syntax

oTestModule = NewTest( sName, oContainer, fTestHandler, fSuiteHandler, sPath, sContent )

Parameters

Returns

oTestModule as TestModule: A new TestModule object.

UnloadTest

Unloads the specified test module.

Syntax

bRemoved = UnloadTest( sTest )

Parameters

Returns

bRemoved as boolean: Bit indicating whether the test was removed.